cakephp - How to allow unauthenticated users to view the root of the application -


in appcontroller.php, try make root of application (http://www.myappdomain.com) visible all.

   public function beforefilter() {         $this->auth->allow('index', 'view');//allowed content not authenticated visitors     } 

but doesn't show me root of application, when type http://www.myappdomain.com redirects me login page since put controllers hidden unauthenticated users, still need make root visible. missing something? thanx.

note: using cakephp v2.3.1

don't allow index in appcontroller.php make visible every controller in whole website. add allow('index') in beforefilter of specific controller used render root.


Comments