Topic: [Solved] Login Integration with CakePHP
Hi everyone,
I've searched the forums, but I haven't found a similar problem, so thanks for taking the time to help.
I'm attempting to integrate punBB into a new site I'm creating. The site uses the CakePHP framework. However, for user management, I would prefer to use punBB's built in user management. Here are my directory and url layouts.
/root/webdev/mysite/
/root/webdev/mysite/app/ <-- tons of directories and files for the cakephp framework
/root/webdev/mysite/forum/ <--- punbb
mysite.com/forum/ <-- punbb
mysite.com/posts/23 <--- modrewrite is used here. This maps to /root/webdev/mysite/app/post_controller.php
The framework uses mod_rewrite, which isn't a problem (The forum works perfectly). The only reason I mention it is because I think (...maybe) that my problem has to do with include()'s pulling from the wrong directory. But I could be wrong.
So basically, no matter where a person is at on my site, I want the user to be able to log in. And if they are logged in, I'd like to be able to show that they're logged in.
I can get a user login box to show up. And I can actually get the user to log in. If they are at mysite.com/forum/, punbb shows they're logged in. But if they go to a nested directory, mysite.com/post/someid/, $pub_user shows that they're a guest.
Can anyone help me with this?
Thanks a lot.