# |
Jul 14th 2018, 13:08 |
blueman |
use App\Controller\Customer\Notifications; |
# |
Jul 14th 2018, 13:07 |
josbeir |
Is your controller included in the use statements? |
# |
Jul 14th 2018, 13:07 |
blueman |
Class 'App\Controller\Customer\Notifications' not found |
# |
Jul 14th 2018, 13:07 |
blueman |
when i did it i have problem |
# |
Jul 14th 2018, 13:04 |
neon1024 |
You can just call a static, that's the whole point. Such as `Log::debug('Example');` |
# |
Jul 14th 2018, 13:00 |
blueman |
i'm looking for how can i call a static function in an other controller ? |
# |
Jul 14th 2018, 13:00 |
neon1024 |
Hello |
# |
Jul 14th 2018, 12:59 |
blueman |
hello everybody |
# |
Jul 14th 2018, 12:58 |
neon1024 |
Yes, I suppose so |
# |
Jul 14th 2018, 12:57 |
admad |
@neon1024 disabling security component for index is actually a reasonable thing. Since nothing is being saved/remove from db there's no need for security |
# |
Jul 14th 2018, 12:52 |
neon1024 |
I've sidestepped this in other places with `$this->Security->setConfig('unlockedActions', ['index']);` which doesn't feel like a good solution |
# |
Jul 14th 2018, 12:51 |
neon1024 |
In my search form, when I submit a filter, I'm getting `'_Token' was not found in request data.` but I'm unsure how to use the Security component to add the token |
# |
Jul 14th 2018, 12:21 |
neon1024 |
It's a bit obtuse |
# |
Jul 14th 2018, 12:21 |
neon1024 |
Glad I've hit that one before! |
# |
Jul 14th 2018, 12:21 |
neon1024 |
Found the issue, it was a bad Nginx config, which was passing the url as a query param |
# |
Jul 14th 2018, 11:56 |
neon1024 |
I am paginating UserPermissions in the Companies::view |
# |
Jul 14th 2018, 11:53 |
neon1024 |
`http://telecomscca.dave/admin/companies/view/1?url=admin%2Fcompanies%2Fview%2F1andsort=last_nameanddirection=asc` |
# |
Jul 14th 2018, 11:53 |
neon1024 |
Anyone know why the Paginator is generating my pagination urls as query params? |
# |
Jul 14th 2018, 11:18 |
admad |
@neon1024 vscode has an extension for phpstan |
# |
Jul 14th 2018, 10:53 |
kitcat711 |
neon1024 : My main job is not about webdev, so using it only a part from it |
# |
Jul 14th 2018, 10:42 |
neon1024 |
No problem. I use PHP Storm all day at work, and not even I know all the ins and outs of it! |
# |
Jul 14th 2018, 10:36 |
kitcat711 |
neon1024 thx |
# |
Jul 14th 2018, 10:34 |
neon1024 |
I don't recall if @dereuromark upgrade shell will do major releases or not |
# |
Jul 14th 2018, 10:34 |
neon1024 |
Then you could automate some of that process :slightly_smiling_face: |
# |
Jul 14th 2018, 10:34 |
neon1024 |
I can't recall if there is a Rector setup for 3.5 -> 3.6 |
# |
Jul 14th 2018, 10:33 |
neon1024 |
And you can do Replace in path too, then specify the find, replace and the path to look in, which is probably /src |
# |
Jul 14th 2018, 10:33 |
neon1024 |
It's in Edit > Find > Find in path |
# |
Jul 14th 2018, 10:32 |
neon1024 |
Do the same |
# |
Jul 14th 2018, 10:32 |
kitcat711 |
neon1024 : I mean, for instance I want to change the use of classes in all files of my project that are using them, with ST3 the "Finf in files" and "replace" function does it, in PHP Storm, I am still looking how to do it |
# |
Jul 14th 2018, 10:30 |
neon1024 |
Sorry, I don't know what you mean. |
# |
Jul 14th 2018, 10:28 |
kitcat711 |
neon1024 : PHP Storm seems to be powerfull but appears complex: for instance changing use Cake\whatever in my project is not even simple |
# |
Jul 14th 2018, 10:26 |
neon1024 |
I quite like Sublime, but I'd need to find a plugin for the static analysis |
# |
Jul 14th 2018, 10:26 |
slackebot |
Action: neon1024 waits for someone to extol the virtues of Vim |
# |
Jul 14th 2018, 10:25 |
neon1024 |
I used to like Aptana way back and I found Netbeans to be a bit sluggish |
# |
Jul 14th 2018, 10:25 |
neon1024 |
I've grown to love PHP Storm. I'm not sure what I'll do should my license expire. I use my work license :P |
# |
Jul 14th 2018, 10:24 |
kitcat711 |
hello neon1024, thx, found it (discovering PHPStorm in the mean time, which makes it harder) |
# |
Jul 14th 2018, 10:23 |
neon1024 |
@kitcat711 No don't modify the vendor files, just use the correct class. The Email class has moved house, check the source code to see the `class_alias()` |
# |
Jul 14th 2018, 10:22 |
neon1024 |
Morning all |
# |
Jul 14th 2018, 09:07 |
kitcat711 |
Am I supposed to modify any vendor file? |
# |
Jul 14th 2018, 09:07 |
kitcat711 |
hello, working on my migration from 3.5 to 3.6, I got this warning: Use Cake/Mailer/Email ... in vendor/composer/CalssLoader.php |
# |
Jul 13th 2018, 18:55 |
kailas |
seems like there is some way that Form->input can choose the value from ->invalid and display the error message, but not sure why it’s not working |