Hi
In AppController I am using this code
function beforeRender(\Cake\Event\EventInterface $event) {
if($this->request->isAjax())
{
/* coe here */
}
if( $this->Auth->user()){ /* Line no 100 */
/*code here */
}
}
when i try to use wrong url or any other error (missing controller name or action etc )
templates > error > error4004.php and error4004.php is calling but that time i am getting this error even user is logged in
Notice (1024): Undefined property: ErrorController::$Auth in /Applications/MAMP/htdocs/cake/my_app/src/Controller/AppController.php on line 100 [CORE/src/Controller/Controller.php, line 321]
What i am missing here ?