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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -