application/third_party/community_auth/controllers/Examples.php
/**
	 * Demonstrate being redirected to login.
	 * If you are logged in and request this method, 
	 * you'll see the message, otherwise you will be 
	 * shown the login form. Once login is achieved, 
	 * you will be redirected back to this method.
	 */
Demonstrate being redirected to login.
If you are logged in and request this method,
you'll see the message, otherwise you will be
shown the login form. Once login is achieved,
you will be redirected back to this method.
Demonstrate being redirected to login . If you are logged in and request this method you ' ll see the message otherwise you will be shown the login form . Once login is achieved you will be redirected back to this method .
public function index()
	{
		if( $this->require_role('admin') )
		{
			echo 'Logged in</br>' . secure_anchor('user/logout', 'Logout');
		}
	}
public function index ( ) { if ( $ this -> require_role ( 'admin' ) ) { echo 'Logged in</br>' . secure_anchor ( 'user/logout' , 'Logout' ) ; } }
Demonstrate being redirected to login.
Demonstrate being redirected to login .