Exemplo n.º 1
0
 /**
  * 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();
 }
Exemplo n.º 2
0
 /**
  * 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');
 }
Exemplo n.º 3
0
 /**
  * Create a new entry
  * @Developer brandon
  * @Date May 19, 2010
  */
 public function new_one()
 {
     parent::new_one();
     meta::set_title('New Journal Entry');
 }
Exemplo n.º 4
0
 /**
  * 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');
 }