# |
Apr 17th 2019, 11:47 |
neon1024 |
Anyone rememeber where the Cakephp resources are? LIke the baked with cake flag etc? |
# |
Apr 17th 2019, 11:35 |
neon1024 |
Yeah, I think so too :slightly_smiling_face: |
# |
Apr 17th 2019, 11:33 |
xavier981 |
but the change .ctp to .php it's good choice |
# |
Apr 17th 2019, 11:33 |
xavier981 |
yes i can try lol |
# |
Apr 17th 2019, 11:32 |
neon1024 |
I’m sure you could change it if you wanted to, and setup the configuration. Perhaps it’s worth posting an RFC ticket about to discuss with the community? |
# |
Apr 17th 2019, 11:31 |
neon1024 |
Yeah, it does seem odd to me too |
# |
Apr 17th 2019, 11:30 |
xavier981 |
@neon1024 may be...it's disturbing uppercase and lower cas in the same folder... |
# |
Apr 17th 2019, 11:29 |
neon1024 |
@xavier981 Perhaps Email is the same as Flash, because there is an Email class |
# |
Apr 17th 2019, 11:23 |
neon1024 |
Because of the FlashComponent? |
# |
Apr 17th 2019, 11:23 |
neon1024 |
On the same topic, why is `/templates/element/Flash` uppercase? |
# |
Apr 17th 2019, 11:21 |
xavier981 |
do you have an explication for Email ? (it's for my logical :) ) |
# |
Apr 17th 2019, 11:17 |
xavier981 |
Yes you are right sorry |
# |
Apr 17th 2019, 11:16 |
admad |
Error corresponds to ErrorController and hence capital cased |
# |
Apr 17th 2019, 11:15 |
xavier981 |
it's only my opinion lol |
# |
Apr 17th 2019, 11:15 |
xavier981 |
for me Email forder can write with lower case, and Error too, the other i think it's best in uppercase yes |
# |
Apr 17th 2019, 11:13 |
dakota |
:wave: @neon1024 |
# |
Apr 17th 2019, 11:13 |
admad |
Only folders which match your controller name are upper cases. All other special folders are lowe cased |
# |
Apr 17th 2019, 11:12 |
xavier981 |
ok i understand, and why some folder have uppercase and another not ? (in templates folder) |
# |
Apr 17th 2019, 11:12 |
hollistergraham123 |
Is the Orders.completed suppose to represent a customer Model.Orders.completed event being emitted? |
# |
Apr 17th 2019, 11:12 |
slackebot |
‘always’ ] ] ]); } }` |
# |
Apr 17th 2019, 11:12 |
hollistergraham123 |
In the time stamp behavior their is this example `class OrdersTable extends Table { public function initialize(array $config) { $this->addBehavior(‘Timestamp’, [ ‘events’ => [ ‘Model.beforeSave’ => [ ‘created_at’ => ‘new’, ‘updated_at’ => ‘always’, ], ‘Orders.completed’ => [ |
# |
Apr 17th 2019, 11:11 |
admad |
@xavier981 because we only wanted to keep classes with autoloading within src folder |
# |
Apr 17th 2019, 11:09 |
xavier981 |
why i have separated templates folder of src ? |
# |
Apr 17th 2019, 11:07 |
neon1024 |
@xavier981 Be sure to send in your feedback to the core team :slightly_smiling_face: |
# |
Apr 17th 2019, 11:06 |
xavier981 |
@neon1024 It's work Thx |
# |
Apr 17th 2019, 11:06 |
martin |
ah I was cleaning it by myself, but it worked :slightly_smiling_face: |
# |
Apr 17th 2019, 11:05 |
neon1024 |
`bin/cake cache clear_all` perhaps |
# |
Apr 17th 2019, 11:05 |
neon1024 |
Then I’d agree with @hollistergraham123 perhaps it’s just some cached routes. If you’re using newer Cake routing can be cached |
# |
Apr 17th 2019, 11:04 |
Martin` |
checked it, it is the lastest version |
# |
Apr 17th 2019, 11:04 |
neon1024 |
Perhaps your DebugKit is out of date? Did you try `composer outdated -D` ? |
# |
Apr 17th 2019, 11:04 |
neon1024 |
If you’re using `addPlugin` you shouldn’t need to worry about ‘routing’ option, as it’s handled internally |
# |
Apr 17th 2019, 11:03 |
dereuromark |
The current inflector is here: https://sandbox.dereuromark.de/sandbox/inflector |
# |
Apr 17th 2019, 11:03 |
Martin` |
last one |
# |
Apr 17th 2019, 11:03 |
neon1024 |
@martin How are you loading the plugin? Are you using `Plugin::load()` or `$this->addPlugin()` ? |
# |
Apr 17th 2019, 11:01 |
hollistergraham123 |
I had that issue and just deleted the sqlite database by deleting the tmp folder and then when I refreshed the page it worked again |
# |
Apr 17th 2019, 10:58 |
martin |
:S |
# |
Apr 17th 2019, 10:58 |
martin |
DebugKitController could not be found. |
# |
Apr 17th 2019, 10:58 |
martin |
My debugkit does not work anymore, it is missing the debugkit controller. how can this happen? I tried adding the ‘routing’ => true to the loadplugin but that also not changes it |
# |
Apr 17th 2019, 10:57 |
hollistergraham123 |
First off AWESOME! Did not know that existed |
# |
Apr 17th 2019, 10:57 |
neon1024 |
Equipment is both singular and plural! |
# |
Apr 17th 2019, 10:57 |
neon1024 |
Give it a try at https://inflector.cakephp.org/ |