I’m running Kohana 3, and having a hard time understanding the Auth module, or even if it’s what I need. Basically I want to create a basic user profile site with basic username/password protection.
How do I take my existing controllers…
class Controller_Profile extends Controller
{
function action_index( $user_id )
{
// User should already be authenticated by here I think
}
}
…and use them with some sort of authentication system
For Kohana 3 you’ll want to do your check in
beforeand not__constructlike JIStone suggests.Simple enough to understand. You can put this into a controller and have all the controllers that need authentication to extend that.