Hi, I start learning cake by following the blog and user
authentification tutorials on the manual. However, when I try to put
these two applications together, they don't work as the way I
expected. Simply, I just want when a user logs in, he can read all
pages of the blog. If someone tries to access any page the blog before
he has logged in, he is redirected to the login page.

Here is the problem:
I never get into the blog, even I login properly. Whatever I do, I am
redirected to the login page.

My posts_controller of the blog looks like this

class PostsController extends AppController
{
    var $name = 'Posts';

                function beforeFilter()
                {
                        $this->checkSession();
                }

                function index()
                {       ...

                }

                function view($id)
                {       ...
                }

                function add()
                {             ...
                }

                function delete($id)
                {       ...
                }

                function edit($id = null)
                {       ...
                }
    }

My users_controller and app_controller are same as described in the
tutorials.
Tried to search for the solution, but didn't get any luck for two
days. And I am sure this can be solved easily.
Any helps would be appreciate, thank you!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to