# |
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.) |
# |
Jul 23rd 2018, 18:28 |
phantomwatson |
You'd need to go into your plugin directory and run your composer commands from there for your plugin's `composer.json` file to be read. |
# |
Jul 23rd 2018, 18:27 |
phantomwatson |
Composer reads `composer.json` in your project's root and resolves everything from there. If you have a separate `composer.json` file in a plugin directory that's not referenced from your root file, then running `composer install` or `composer update` in your root directory won't update that plugin. |
# |
Jul 23rd 2018, 18:26 |
mdotobie |
so what about it’s current situation as a submodule, the dependencies can live in the plugins `vendor` folder and be accessed from there until the time I turn it into a real composer package? |
# |
Jul 23rd 2018, 18:25 |
mdotobie |
oh so composer will just read the required plugins from the plugins composer file and then load them into the parent applications `vendor` directory? |
# |
Jul 23rd 2018, 18:23 |
phantomwatson |
When you install a composer package, all of its dependencies also get installed to your `vendor` directory, assuming there aren't any conflicts. |
# |
Jul 23rd 2018, 18:20 |
slackebot |
the plugin project. But I’m unsure how these carry up to the main application in the submodule scenario and the composer package scenario. |
# |
Jul 23rd 2018, 18:20 |
mdotobie |
So I’m writing my first plugin for Cake3 and I’m confused on a workflow approach. My initial development is as a separate app that has a GitHub repo. I’ve included it in the main application as a submodule in the plugins folder. My plan is to later create a real Composer package and then require it in the main application. My confusion is around dependencies in the plugin. I know I can use Composer to require the necessary packages wit |
# |
Jul 23rd 2018, 18:18 |
dwms |
to relationships |