# |
Jul 12th 2018, 14:49 |
josbeir |
Inflector::humanize() |
# |
Jul 12th 2018, 14:48 |
neon1024 |
Or something like `^([\w])(.*)([A-Z])(.*)` |
# |
Jul 12th 2018, 14:47 |
neon1024 |
Is there a neat way to transform `camelCase` into `Camel Case` ? Closest I can get is using `Inflector::underscore` and then replacing `_` with ` ` and using `ucwords()`. Which is just.. well.. too much code |
# |
Jul 12th 2018, 14:46 |
josbeir |
@itmpls run bin/cake routes to see how your routes are seen by cake |
# |
Jul 12th 2018, 14:42 |
neon1024 |
`bin/cake console` <3 |
# |
Jul 12th 2018, 14:41 |
itmpls |
nevermind |
# |
Jul 12th 2018, 14:41 |
itmpls |
should first's action be different? |
# |
Jul 12th 2018, 14:41 |
itmpls |
first has index, second has unsubscribed |
# |
Jul 12th 2018, 14:41 |
itmpls |
the actions are different? |
# |
Jul 12th 2018, 14:30 |
verax5 |
Any help please |
# |
Jul 12th 2018, 14:20 |
verax5 |
Same controller |
# |
Jul 12th 2018, 14:20 |
verax5 |
https://kopy.io/p2oAL |
# |
Jul 12th 2018, 14:20 |
verax5 |
But this route works though? |
# |
Jul 12th 2018, 14:20 |
verax5 |
slackebot4: |
# |
Jul 12th 2018, 14:18 |
lubos |
@admad true, good idea :slightly_smiling_face: thanks |
# |
Jul 12th 2018, 14:18 |
itmpls |
not sure how flexible |
# |
Jul 12th 2018, 14:18 |
admad |
@lubos can just use 'error' => false |
# |
Jul 12th 2018, 14:18 |
itmpls |
verax5 - shouldn't it be capitalized/camelcased, the filename of your controller? |
# |
Jul 12th 2018, 14:16 |
lubos |
should I unset error in entity? |
# |
Jul 12th 2018, 14:16 |
lubos |
Is there any way how to 'consume' validation errors before they are in form helper output? I mean I want those but for few fields I just want to display errors somewhere else |
# |
Jul 12th 2018, 14:14 |
itmpls |
i have a plugin that i prefixed with a namespace, eg Company\Users similar to CakeDC\Users. in order to link to a controller, i'm doing ['plugin' => 'Company\Users', 'controller' => 'users', 'action' => 'index']; . this makes the link to company/users/users but it can't find the plugin "company". do I have to override this with a Router::plugin('Company/Users', ['path' => '/users']) so it just goes to /users/users? |
# |
Jul 12th 2018, 14:11 |
verax5 |
https://kopy.io/fKJHy |
# |
Jul 12th 2018, 14:11 |
verax5 |
I keep getting page not found for some reason, any idea? |
# |
Jul 12th 2018, 14:09 |
josbeir |
always wanted to go and see that |
# |
Jul 12th 2018, 14:09 |
josbeir |
thats so cool |
# |
Jul 12th 2018, 14:08 |
flavius |
i actually live 30km away from dracula's castle :) |
# |
Jul 12th 2018, 14:08 |
josbeir |
she's easy on the eye |
# |
Jul 12th 2018, 14:07 |
josbeir |
ah thats right |
# |
Jul 12th 2018, 14:07 |
flavius |
we also have halep, on tennis #1 worldwide on girls right now |
# |
Jul 12th 2018, 14:07 |
josbeir |
we got fries ad football |
# |
Jul 12th 2018, 14:07 |
tim |
rofl |
# |
Jul 12th 2018, 14:06 |
josbeir |
you guys have dracula |
# |
Jul 12th 2018, 14:06 |
josbeir |
there's always next time |
# |
Jul 12th 2018, 14:05 |
flavius |
we didn't even qualify to play that's how shitty we are :P |
# |
Jul 12th 2018, 14:04 |
josbeir |
:soccer: |
# |
Jul 12th 2018, 14:04 |
flavius |
oooh, belgium boy |
# |
Jul 12th 2018, 14:04 |
josbeir |
that, and french, german, english, ... |
# |
Jul 12th 2018, 14:04 |
josbeir |
we also speak dutch (flemish) |
# |
Jul 12th 2018, 14:04 |
josbeir |
belgium is just above it |
# |
Jul 12th 2018, 14:04 |
josbeir |
thats the netherlands |
# |
Jul 12th 2018, 14:03 |
josbeir |
nope! |