# |
Jun 27th 2018, 19:36 |
meder |
what controller / namespace structure would be loaded if the prefix is 'foo' and action is 'index'? i have plugins/Foo/src/Controller/FooController.php::index defined but it doesn't seem to load that controller |
# |
Jun 27th 2018, 19:26 |
davinci |
Want to see all SQL queries run during an ajax call (in cake2). I know it's simple w/ Cake 3 now, but - any reasonably simple way to do it in cake2? |
# |
Jun 27th 2018, 19:09 |
meder |
im using multidimensional/cakephp-subdomains - but i can't seem to bind the homepage to a specific controller with a subdomain. anyone use this plugin before? |
# |
Jun 27th 2018, 17:50 |
dwms |
?? |
# |
Jun 27th 2018, 17:50 |
dwms |
json response |
# |
Jun 27th 2018, 17:50 |
dwms |
how to replace null to empty |
# |
Jun 27th 2018, 14:54 |
Martin` |
think you need to make a custom validationrule for that |
# |
Jun 27th 2018, 14:51 |
tim |
Any way to validate uniqueness of email addresses with multiple tables? Using 3.2 so don't have the second `$options` parameter in the construct of IsUnique https://api.cakephp.org/3.3/class-Cake.ORM.Rule.IsUnique.html |
# |
Jun 27th 2018, 14:37 |
Martin` |
Don't know if it is the correct way, I had to do it fast |
# |
Jun 27th 2018, 14:37 |
Martin` |
hmm it is just an extension of JsonView, so I think 'Json' instead of 'Api' :P |
# |
Jun 27th 2018, 14:36 |
Martin` |
or is Api a own viewClass? |
# |
Jun 27th 2018, 14:35 |
Martin` |
I just added "$this->viewBuilder()->className('Api');" in beforeRender of appcontroller, also exceptions are in json format |
# |
Jun 27th 2018, 14:32 |
magiq |
$router->setExtensions ? |
# |
Jun 27th 2018, 14:32 |
magiq |
I dont understand |
# |
Jun 27th 2018, 14:31 |
dereuromark |
yeah you dont have the best URL it seems |
# |
Jun 27th 2018, 14:30 |
magiq |
action.json ? |
# |
Jun 27th 2018, 14:29 |
dereuromark |
using the proper extension :slightly_smiling_face: action.json |
# |
Jun 27th 2018, 14:29 |
magiq |
for rest api |
# |
Jun 27th 2018, 14:29 |
magiq |
how to make cakephp return exceptions in json ? |
# |
Jun 27th 2018, 14:22 |
Martin` |
can not response to that |
# |
Jun 27th 2018, 14:21 |
Martin` |
I only recieved a push notification of a reply on my phone :P |
# |
Jun 27th 2018, 14:21 |
Martin` |
then I did refresh, and then I was fully lost :( |
# |
Jun 27th 2018, 14:21 |
Martin` |
yes me too |
# |
Jun 27th 2018, 14:21 |
NeoThermic|Work |
even though I was connected |
# |
Jun 27th 2018, 14:21 |
NeoThermic|Work |
I was having issues sending messages on another slack team |
# |
Jun 27th 2018, 14:20 |
NeoThermic|Work |
for various values of "still work" |
# |
Jun 27th 2018, 14:20 |
Martin` |
ah existing connectinos still work? :P |
# |
Jun 27th 2018, 14:20 |
NeoThermic|Work |
https://status.slack.com/ |
# |
Jun 27th 2018, 14:20 |
NeoThermic|Work |
the connection gateway is having issues :P |
# |
Jun 27th 2018, 14:20 |
Martin` |
in the past when we used irc, we never had problems like that |
# |
Jun 27th 2018, 14:19 |
Martin` |
you guys are still on slack? how do you do that, mine does not want to connect |
# |
Jun 27th 2018, 14:19 |
neon1024 |
Thanks |
# |
Jun 27th 2018, 14:18 |
NeoThermic|Work |
https://dev.mysql.com/doc/refman/5.7/en/json-search-functions.html#operator_json-column-path |
# |
Jun 27th 2018, 14:18 |
adriencs |
but the "JSON" type does not exist with MariaDB, it's a "LONGTEXT" so cakephp have some trouble |
# |
Jun 27th 2018, 14:17 |
adriencs |
or MariaDB 10.3 |
# |
Jun 27th 2018, 14:16 |
NeoThermic|Work |
neon1024: you'd need MySQL 8 to get the super awesome JSON stuff... |
# |
Jun 27th 2018, 14:16 |
adriencs |
mysql have cool interactions with json now |
# |
Jun 27th 2018, 14:08 |
neon1024 |
I have a JSON column in my database, which pulls in data from a remote data source. These are tv channels, and they have a ‘category’, but in my front-end I would like to organise them by category. Does anyone have any thoughts? I can only think of using a Collection, but I’m sure MySQL can do some funky stuff with JSON right? |
# |
Jun 27th 2018, 13:49 |
meder |
who had an example of 3.6+ middleware parsing subdomains again? |
# |
Jun 27th 2018, 13:18 |
josbeir |
expose the stuff you need to your controller or maybe better as request attributes |
# |
Jun 27th 2018, 13:18 |
tim |
Yeah figured as much. It's because my AppController does some extra Auth stuff and sets some variables in $this, but turns out now I need them in the cell too |