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

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -