# |
Apr 18th 2019, 14:27 |
ricksaccous |
lol |
# |
Apr 18th 2019, 14:27 |
this.impetus |
composer won't even install the wrong one :slightly_smiling_face: |
# |
Apr 18th 2019, 14:26 |
this.impetus |
yeah I'm on the older versoin of the plugin tho |
# |
Apr 18th 2019, 14:26 |
neon1024 |
Well that might be the issue? |
# |
Apr 18th 2019, 14:26 |
ricksaccous |
heh |
# |
Apr 18th 2019, 14:26 |
neon1024 |
..but as the latest release of the plugin requires cakephp 3.7.1 |
# |
Apr 18th 2019, 14:26 |
this.impetus |
3.6.2 |
# |
Apr 18th 2019, 14:26 |
ricksaccous |
what version of cake are you on? |
# |
Apr 18th 2019, 14:26 |
this.impetus |
*go? |
# |
Apr 18th 2019, 14:26 |
this.impetus |
I did not, sorry, I'm a front-end guy learning this stuff; that step wasn't in the instructions. Where does the call to `$this->addPlugin()` |
# |
Apr 18th 2019, 14:26 |
ricksaccous |
the old way of doing it... |
# |
Apr 18th 2019, 14:26 |
neon1024 |
The plugin provides both methods of loading it seems |
# |
Apr 18th 2019, 14:26 |
neon1024 |
Then in AppView.php use `$this->loadHelper()` |
# |
Apr 18th 2019, 14:26 |
ricksaccous |
it seems he loaded the plugin via bootstrap |
# |
Apr 18th 2019, 14:25 |
neon1024 |
Did you use `$this->addPlugin()` in your Application.php? |
# |
Apr 18th 2019, 14:24 |
this.impetus |
And sorry that was a clipboard fail, the error I'm getting is "Helper class ThumberHelper could not be found." |
# |
Apr 18th 2019, 14:23 |
this.impetus |
Why might cake fail to find a helper installed via composer? |
# |
Apr 18th 2019, 14:23 |
this.impetus |
Well, actually; I did read the instructions wrong, I was placing the call to loadHelper in an individual Controller, not the AppView class. I've done this, now. Plugin instaleld via composer, loaded config/bootstrap. but getting "Plugin::load('Thumber', ['bootstrap' => true, 'routes' => true]);" |
# |
Apr 18th 2019, 14:17 |
this.impetus |
please nvm, I read the instructions wrong |
# |
Apr 18th 2019, 14:16 |
slackebot |
App\Controller\ImagesController::loadHelper()``` |
# |
Apr 18th 2019, 14:16 |
this.impetus |
morning all you helpful cake enthusiasts. I'm trying to install and use a cake thumbnail plugin, https://github.com/mirko-pagliai/cakephp-thumber. In the CookBook's instructions for using a helper (https://book.cakephp.org/3.0/en/views/helpers.html#configuring-helpers) is a snippet, ```$this->loadHelper('helpername')```, inserted after the ```parent::intitialize()``` line of any controller, but I'm getting ```Call to undefined method |
# |
Apr 18th 2019, 12:41 |
admad |
@mehov sure can |
# |
Apr 18th 2019, 12:41 |
neon1024 |
Yeah, you’re right |
# |
Apr 18th 2019, 12:40 |
admad |
in fact it would be a pain, you will need `return null` if you don't want to explicitly calls `render()` |
# |
Apr 18th 2019, 12:39 |
admad |
there's isnt much practical value |
# |
Apr 18th 2019, 12:38 |
neon1024 |
I should think about the value of it really, rather than the code aesthetic |
# |
Apr 18th 2019, 12:38 |
neon1024 |
@admad I’ve had to use `return $this->render()` and `): ?Response` but it does work :slightly_smiling_face: |
# |
Apr 18th 2019, 12:31 |
mehov |
Hey guys, quick question: can an Entity, that doesn't directly belong to any of the tables, go to src/Model/Entity? |
# |
Apr 18th 2019, 11:38 |
admad |
@neon1024 you can add return type hint to your method as required |
# |
Apr 18th 2019, 10:03 |
neon1024 |
Would be a nice thing to have imho |
# |
Apr 18th 2019, 10:02 |
neon1024 |
With 4.0.0-alpha1 out, how close are we to getting method return types on controller methods? |
# |
Apr 18th 2019, 09:59 |
dereuromark |
protected method with bail early |
# |
Apr 18th 2019, 09:58 |
dereuromark |
foreach loop from outside IMO |
# |
Apr 18th 2019, 09:54 |
birdy247 |
I thought I could pass an array to isDirty |
# |
Apr 18th 2019, 09:54 |
birdy247 |
Is there a consice way to see if one or more of a subset of properties are dirty |
# |
Apr 18th 2019, 09:40 |
neon1024 |
https://github.com/cakephp/cakephp/wiki |
# |
Apr 18th 2019, 09:40 |
challgren |
Well migration isn’t working so I guess its been decided |
# |
Apr 18th 2019, 09:39 |
challgren |
Im wondering if I should stay on 3.8.0 or switch to 4.0.0 |
# |
Apr 18th 2019, 09:39 |
neon1024 |
So probably still incoming |
# |
Apr 18th 2019, 09:39 |
challgren |
Ohh ok! |
# |
Apr 18th 2019, 09:38 |
neon1024 |
@challgren https://github.com/cakephp/cakephp/releases/tag/3.8.0-beta1 |