# |
Jul 23rd 2018, 21:49 |
mdotobie |
the plugin is not a composer package and so I’m manually adding it to the composer.json of the main application |
# |
Jul 23rd 2018, 21:49 |
itmpls |
check the directory, check the classname, check the filename |
# |
Jul 23rd 2018, 21:48 |
itmpls |
then it's a typo or wrong filename in the wrong directory |
# |
Jul 23rd 2018, 21:48 |
saeideng |
and you can change probably in cakedc |
# |
Jul 23rd 2018, 21:48 |
mdotobie |
that would seem the approach too @itmpls, but I’m getting class not found errors |
# |
Jul 23rd 2018, 21:48 |
itmpls |
for a different reason.. |
# |
Jul 23rd 2018, 21:48 |
itmpls |
@saeideng oh, its probably because i set config users.php 'auth' to false.. ugh |
# |
Jul 23rd 2018, 21:47 |
saeideng |
`auth` should be default |
# |
Jul 23rd 2018, 21:47 |
itmpls |
or am i not understanding? |
# |
Jul 23rd 2018, 21:47 |
itmpls |
use Plugin\Package\Dir\Class; and use Class? |
# |
Jul 23rd 2018, 21:46 |
mdotobie |
I’m struggling with how to access classes inside plugins within the main application. Is this no-no and are you only allowed to access Controllers/Models/Behaviors/Components/Views from Plugins? I’m trying to package up some traits and services as a plugin but I’m wondering if a plugin architecture might be overkill. |
# |
Jul 23rd 2018, 21:46 |
itmpls |
yeah, actually ended up doing that and it worked. it's weird because in my other setup, it works with ('auth') |
# |
Jul 23rd 2018, 21:42 |
saeideng |
and you can remove its key |
# |
Jul 23rd 2018, 21:42 |
saeideng |
Flash uses session |
# |
Jul 23rd 2018, 21:21 |
itmpls |
is there something that would prevent echo $this->Flash->render('auth'); from rendering the flash output messages from cakedc? ( im extending ). loaded the flashcomponent in the app controller.. |
# |
Jul 23rd 2018, 21:03 |
dwms |
????????????????????? |
# |
Jul 23rd 2018, 21:02 |
dwms |
??? |
# |
Jul 23rd 2018, 21:01 |
dwms |
what to do |
# |
Jul 23rd 2018, 21:01 |
dwms |
crudjsonapi return with hiffen |
# |
Jul 23rd 2018, 21:00 |
dwms |
javascript not accept hifen in name the variable |
# |
Jul 23rd 2018, 21:00 |
dwms |
hello |
# |
Jul 23rd 2018, 20:39 |
dereuromark |
Before we even start with 4.x stuff, I think we should first get 3.6 rather well covered. |
# |
Jul 23rd 2018, 20:39 |
dereuromark |
Anyone interested in helping him getting the upgrade rules up to date for Cake3? |
# |
Jul 23rd 2018, 20:32 |
dereuromark |
Crumbs ! :slightly_smiling_face: https://github.com/rectorphp/rector/issues/524 |
# |
Jul 23rd 2018, 20:16 |
awitte |
I wrote an issue into cakephp/chronos... https://github.com/cakephp/chronos/issues/176 |
# |
Jul 23rd 2018, 20:10 |
chris-andre |
Is this something for the beforeSave? |
# |
Jul 23rd 2018, 20:09 |
chris-andre |
I did something like this in beforeMarshal() earlier, by unsetting $data[$key]. But that doesn't seem like a good way of doing it. |
# |
Jul 23rd 2018, 20:07 |
slackebot |
way? |
# |
Jul 23rd 2018, 20:07 |
chris-andre |
Hi guys. I have an Organizations table that hasMany Addresses. In the add form for Organizations I have two rows of addresses, `<?= $this->Form->control('addresses.0.address1') ?>` `<?= $this->Form->control('addresses.1.address1') ?>`. Now, if field `addresses.1.address1` is empty, I don't want to return an error, I simply want to remove it from entity before saving instead. Could someone point me in a direction how to do this in a "good" |
# |
Jul 23rd 2018, 19:39 |
Igno_ |
Hi, I created complex rules Tables. Each time a rule invalidates the entity it auto_increments the primary_key of my table. Can i avoid that? |
# |
Jul 23rd 2018, 19:35 |
awitte |
I'd like to write a costum validator and need to work the data, easiest would be having a DateTime of \Cake\I18n\Time |
# |
Jul 23rd 2018, 19:33 |
awitte |
hi. I am wondering, how cake builds the array of datetime-data into a DatetimeObject... |
# |
Jul 23rd 2018, 19:29 |
I_hate_CakePHP |
Fuck your mothers! :D |
# |
Jul 23rd 2018, 19:25 |
I_hate_CakePHP |
I have an issue, can someone help? |
# |
Jul 23rd 2018, 19:25 |
I_hate_CakePHP |
Hey |
# |
Jul 23rd 2018, 18:34 |
phantomwatson |
As long as it doesn't trip up class autoloading. |
# |
Jul 23rd 2018, 18:33 |
chikore |
Hello Baker |
# |
Jul 23rd 2018, 18:31 |
mdotobie |
I just wanted to make sure that a `vendor` folder in the submodule was “okay” at this stage in the game or do I need to turn plugins into Composer packages as soon as possible |
# |
Jul 23rd 2018, 18:30 |
mdotobie |
I’m fine with them living in the submodules `vendor` folder until the time I turn the submodule into it’s on composer package |
# |
Jul 23rd 2018, 18:29 |
mdotobie |
well while it’s a submodule I don’t necessarily want to hoist the dependencies up to the root `vendor` folder |
# |
Jul 23rd 2018, 18:29 |
phantomwatson |
(Anybody else: Jump in if you can correct any of these points. I tend not to mess with Git submodules.) |