Created
October 6, 2009 14:54
-
-
Save chadspencer/203095 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') OR die('No direct access allowed.'); | |
class Admin_Controller extends Website_Controller { | |
public function __construct() { | |
parent::__construct(); | |
$this->template = new View('admin/template'); | |
$this->template->body_class = 'admin'; | |
$this->template->title = 'Admin'; | |
} | |
public function login() { | |
$this->template->content = new View('admin/login'); | |
$this->template->body_class .= ' login'; | |
$this->template->title .= ' › Login'; | |
} | |
public function customers() { | |
$this->template->content = new View('admin/customers'); | |
$this->template->body_class .= ' customers'; | |
$this->template->title .= ' › Customers'; | |
} | |
public function customers_detail() { | |
$this->template->content = new View('admin/customers/detail'); | |
$this->template->body_class .= ' detail'; | |
$this->template->title .= ' › Customers › Detail'; | |
} | |
} // End Admin Controller |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment