Log message #4213544

# At Username Text
# Nov 15th 2019, 21:21 alexmax the one that's created in `index.php` and `cake.php`
# Nov 15th 2019, 21:20 alexmax I want to use the one that's already there - presumably the one that is actually aware of what plugins are accessible.
# Nov 15th 2019, 21:20 alexmax isn't that creating a new application instance?
# Nov 15th 2019, 21:11 ricksaccous i'm just guessing but i dunno if that'll work
# Nov 15th 2019, 21:11 ricksaccous $myApplication = new Application(); $myApplication->getPlugins();
# Nov 15th 2019, 21:11 ricksaccous use App\Application;
# Nov 15th 2019, 21:02 alexmax Like, I'm not sure how to get access to `Application` from within a `Shell` or a `Controller`
# Nov 15th 2019, 20:59 alexmax How should I be getting access to `App\Application`? I need to query the list of loaded plugins, and to do that in modern Cake I think need access to the `Application`, which seems a little scarce.
# Nov 15th 2019, 20:14 kiwi_51 thanks a lot....
# Nov 15th 2019, 20:12 ricksaccous good luck
# Nov 15th 2019, 20:12 ricksaccous look into paid hosting solutions or try to self-host (but that's a huge pain)
# Nov 15th 2019, 20:11 ricksaccous like you'd host any website
# Nov 15th 2019, 20:11 ricksaccous you'd have to host the application somewhere
# Nov 15th 2019, 20:08 kiwi_51 I mean, if i want to show on the net my "app" how i can get this issue?
# Nov 15th 2019, 20:07 kiwi_51 to another site that's not been the local host?
# Nov 15th 2019, 20:06 kiwi_51 im new to CakePHP, I have finished 2/3 courses about this framework and i have a question, when you finish the app, there's any way to take the app
# Nov 15th 2019, 20:03 kiwi_51 to everyone
# Nov 15th 2019, 20:03 kiwi_51 hi tio eveyone!!!
# Nov 15th 2019, 16:38 shifat.it is there anyone who is contributing in Github project .. php ??
# Nov 15th 2019, 16:18 jeremy.halin @ndm @pieceof thanks I will look into that
# Nov 15th 2019, 16:17 slackebot1 `AuthComponent::redirectUrl()` (assuming you're using that).
# Nov 15th 2019, 16:17 ndm @jeremy.halin If the redirect URL in the query string is correct, then maybe it's being lost with your login request, or your login code doesn't handle redirection properly. You'll have to debug that a little more, check your browsers network console what requests/redirects exactly happen, check what the request looks like in your login action (is the query string present and corect), and check what exactly happens in
# Nov 15th 2019, 16:14 pieceof dont take me very serius but looks like a feature to me, maybe some security activated?
# Nov 15th 2019, 16:05 slackebot1 to default after login page.
# Nov 15th 2019, 16:05 jeremy.halin Hello, I have a very strange bug that I have already tried to fix without success. The redirection after an expired session is not functional on my application. I know it's hard to have a solution like that, without seeing the code, but has anyone ever had the problem? I'm using Auth component, what happens is that I'm redirected to login, with a query parameter, but when I log in I'm not redirected to previous page, always redirected
# Nov 15th 2019, 16:01 kaliel @ndm thx
# Nov 15th 2019, 15:48 ndm `vendor/mobiledetect/mobiledetectlib/namespaced/Detection`
# Nov 15th 2019, 15:46 kaliel Hi everyone, i can't see where is located the namespace \Detection used in boostrap `$detector = new \Detection\MobileDetect();`, can anyone point me into some direction please ?
# Nov 15th 2019, 15:05 slackebot1 } when I rename the geocoded.php it into to GeocodedBehavior.php file this error is gone But when I export the PDF file in the application it is getting can't read the PDF output fdpf error (output starting at /apps/app/Model/Behavior/GeocodedBehavior.php) please can you help me with this error as I am new to the migration in cakephp
# Nov 15th 2019, 15:05 nayakvradhit When I migrate cakephp version 2.1 to 2.10 there was a file called geocoded.php in the folder app/Model/Behavior and I copied the respective controllers,views and model into the folders into the new version and I connected the database and it is working fine but when I run the new code in cakephp 2.10 I am getting the missing behavior GeocodedBehavior is not found error , create a class called GeocodedBehavior extends ModelBehavior {
# Nov 15th 2019, 13:55 dereuromark Sure, lets try :slightly_smiling_face:
# Nov 15th 2019, 13:51 justin.denick ok thanks @dereuromark! There is a test in there showing how `_config['address_format']` would work and I will add another test to illustrate the adminLevel (%a %A) interpolation and push the PR to ya — let me know if that has a negative impact on your ci usage.
# Nov 15th 2019, 13:44 slackebot1 could move forward here. Thanks for bringing this to my attention :slightly_smiling_face:
# Nov 15th 2019, 13:44 dereuromark @justin.denick I dont see your %a issue etc in there. But isn't the Geo lib underneath the surface doing quite similar things you do here? Can we maybe improve the current code to be more generic/working? Also please see the underlying lib using the external wrapper (and here we are not on the latest version yet), so maybe that also could resolve some of the issue. Feel free to open a ticket or PR on the repo to further discuss how we
# Nov 15th 2019, 13:34 slackebot1 https://gist.github.com/justindenick/cdc737e40ece79d0928439b7c575ff7b While it’s not as sophisticated as cakephp-geo, it does do what I need it to. I could just move on from here, but something doesn’t feel right about how I am using Behaviors.
# Nov 15th 2019, 13:34 justin.denick @dereuromark I ran into a wall with the cakephp-geo plugin. I started to work on it here `https://github.com/justindenick/cakephp-geo/tree/feature/config-address_format` to make it easier to format the address. >This side of the pond likes the street_number to come before the street_name. I just couldn’t get the adminLevels to work. `%a` and `%A` are not being interpolated. :exploding_head: I ended up having to call it and I wrote th
# Nov 15th 2019, 10:42 challgren np
# Nov 15th 2019, 10:41 Benjamin3 Thanks a lot!
# Nov 15th 2019, 10:41 Benjamin3 That's an interesting approach, sadly doesn't work for postgres, but i'll have a look if i can steal some ideas there for an own solution :-)
# Nov 15th 2019, 10:37 challgren @benjamin3 try https://github.com/FriendsOfCake/fixturize
# Nov 15th 2019, 10:36 Benjamin3 ?