Log message #4154357

# At Username Text
# Jun 28th 2018, 08:39 kunalspunjabi I hope so :slightly_smiling_face:
# Jun 28th 2018, 08:39 josbeir its probably something real stupid
# Jun 28th 2018, 08:39 kunalspunjabi I'm totally stumped
# Jun 28th 2018, 08:39 josbeir hmm :slightly_smiling_face:
# Jun 28th 2018, 08:39 josbeir thats a good thing
# Jun 28th 2018, 08:38 kunalspunjabi @josbeir added a var_dump and die in beforeFilter...it prints and dies
# Jun 28th 2018, 08:38 josbeir simply put a die() in beforeFilter or something
# Jun 28th 2018, 08:38 kunalspunjabi Let me try that now.
# Jun 28th 2018, 08:37 josbeir if not, there is your problem
# Jun 28th 2018, 08:37 josbeir check if beforeFilter is executed
# Jun 28th 2018, 08:37 josbeir trace it down to why the variable is not passed to the view
# Jun 28th 2018, 08:36 kunalspunjabi but with the cake 1.3 app that I have partially migrated to 2.0, it doesnt work
# Jun 28th 2018, 08:36 kunalspunjabi it's really strange, works fine with a skeleton cake2 app
# Jun 28th 2018, 08:36 josbeir that should work, unless beforeFilter is not executed (maybe an exception is thrown somewhere)
# Jun 28th 2018, 08:35 kunalspunjabi printing it in default.ctp: ```<?php echo $cake123; ?> ```
# Jun 28th 2018, 08:35 josbeir hm
# Jun 28th 2018, 08:35 josbeir alright
# Jun 28th 2018, 08:35 josbeir where are you setting that var?
# Jun 28th 2018, 08:35 kunalspunjabi setting the variable in appController::beforeFilter(): ```$this->set('cake123', "cake123"); ```
# Jun 28th 2018, 08:34 kunalspunjabi ```Notice (8): Undefined variable: cake123 [APP/View/Layouts/default.ctp, line 115] ```
# Jun 28th 2018, 08:34 kunalspunjabi @josbeir I tried "cake123", same issue
# Jun 28th 2018, 08:34 saeideng :+1:
# Jun 28th 2018, 08:34 josbeir time for some extra coffee
# Jun 28th 2018, 08:34 josbeir tnx @dereuromark @saeideng
# Jun 28th 2018, 08:33 josbeir but cake2 de-camelcases stuff, bit lame :P
# Jun 28th 2018, 08:33 kunalspunjabi oh
# Jun 28th 2018, 08:33 josbeir you used isProduction
# Jun 28th 2018, 08:33 kunalspunjabi @josbeir thanks for the response - what did you mean by is_production. That's what I was using
# Jun 28th 2018, 08:33 josbeir yeah just started my day and last time i checked it didnt happen :)
# Jun 28th 2018, 08:32 saeideng :face_with_rolling_eyes:
# Jun 28th 2018, 08:32 saeideng about 17 hours ago
# Jun 28th 2018, 08:32 josbeir haha
# Jun 28th 2018, 08:32 josbeir ow didnt see :)
# Jun 28th 2018, 08:32 josbeir ah
# 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?