/** * Don't let the customer on the login page if they are already authenticated * @Developer brandon * @Date Oct 12, 2010 */ public function new_one() { if (customer::logged_in()) { url::redirect(url::site()); } parent::new_one(); }
/** * Show the login page * @Developer brandon * @Date May 19, 2010 */ public function new_one() { if (user::logged_in()) { url::redirect(''); } parent::new_one(); layout::add(View::factory('shared/mentions')->render(), 'pre_footer'); meta::set_title('Login'); }
/** * Create a new entry * @Developer brandon * @Date May 19, 2010 */ public function new_one() { parent::new_one(); meta::set_title('New Journal Entry'); }
/** * Set up a new user * @Developer brandon * @Date May 19, 2010 */ public function new_one() { parent::new_one(); layout::add(View::factory('shared/mentions')->render(), 'pre_footer'); meta::set_title('Create an Account'); }