# |
Jun 28th 2018, 08:32 |
saeideng |
now is 0.1.2 |
# |
Jun 28th 2018, 08:32 |
josbeir |
no, i fixed a small but important issue yesterday |
# |
Jun 28th 2018, 08:31 |
saeideng |
why whoops needs a new release ? |
# |
Jun 28th 2018, 08:31 |
josbeir |
@kunalspunjabi late reply, but try is_production, i believe cake 2 does some inflector stuff on those variables back then |
# |
Jun 28th 2018, 08:30 |
josbeir |
@dereuromark care to tag a new rls for your whoops plugin? |
# |
Jun 28th 2018, 07:57 |
birdy247 |
Yes it is I see :slightly_smiling_face: |
# |
Jun 28th 2018, 07:56 |
birdy247 |
Is it possible for a template to overide the layout set in the controller? |
# |
Jun 28th 2018, 07:42 |
adriencs |
Where do you assign *$this->isProduction* ? |
# |
Jun 28th 2018, 07:19 |
mohitprakashsharma555 |
pagli rulayegi kya ab |
# |
Jun 28th 2018, 07:18 |
sharnaaysha23 |
I solve my problem ..It was database user permission problem. Thank you @tim :grinning: |
# |
Jun 28th 2018, 06:22 |
lubos |
Morning All, when I do have ids for belongsToMany association and what to save can I set _ids with entity or I can do it only before marshall? |
# |
Jun 28th 2018, 04:48 |
kunalspunjabi |
By the way, this is what I have in my AppController: ``` $this->set('isProduction',$this->isProduction);``` However, accessing the variable from my default template doesn't seem to work: ```<?php if ($isProduction) { ?>``` Any idea why? |
# |
Jun 28th 2018, 04:46 |
kunalspunjabi |
Hope this isn't too confusing, I tried my best to be crystal in my description above. Has anyone faced this problem? |
# |
Jun 28th 2018, 04:46 |
kunalspunjabi |
It works fine with a skeleton cake2 app, but not with the one where I migrated my 1.3 app into the 2.0 skeleton |
# |
Jun 28th 2018, 04:45 |
kunalspunjabi |
For the life of me I can't figure out why I can't pass variables from my app controller to my default template. |
# |
Jun 28th 2018, 04:44 |
kunalspunjabi |
File uploaded https://cakesf.slack.com/files/UBEM7BEKS/FBFGETE1K/image.png / https://slack-files.com/T053DPNCM-FBFGETE1K-fce5964728 |
# |
Jun 28th 2018, 04:44 |
kunalspunjabi |
I've had an old unmaintained app on Cake 1.3 that I've been trying to migrate to 2.0. 1. I tried the Upgrade shell, which ran, but then the app wasn't loading, so I started from scratch with a manual upgrade of my 1.3 app to 2.0 2. After moving all the models, views, controllers, components, helpers etc from my 1.3 app to my "skeleton" 2.0 app, I get this: |
# |
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 |