he is right
at the beginning the had the same problems
the reason:
if an error is triggered, beforeFilter() and afterFilter() are not
invoked!
so everything you need in the layout should be in beforeRender()
this should be the case anyway
imagine you process some post data and redirect afterwards
I found an alternative solution by using beforeRender instead of
beforeFilter
And assigning `logged_in` in 'ObAuth' Comp.
On Dec 20, 11:45 am, NeoWebTech wrote:
> Hello!
>
> I am PHP Developer for some time and developing my second CakePHP App
> now :)
>
> I am getting the following error when
Hello!
I am PHP Developer for some time and developing my second CakePHP App
now :)
I am getting the following error when I access $logged_in from
default.ctp.
Notice (8): Undefined variable: logged_in [APP\views\layouts
\default.ctp, line 17]
Also this happens only when no corresponding action