Skip to content

Instantly share code, notes, and snippets.

@chadspencer
Created October 6, 2009 14:54
Show Gist options
  • Save chadspencer/203095 to your computer and use it in GitHub Desktop.
Save chadspencer/203095 to your computer and use it in GitHub Desktop.
<?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 .= ' &rsaquo; Login';
}
public function customers() {
$this->template->content = new View('admin/customers');
$this->template->body_class .= ' customers';
$this->template->title .= ' &rsaquo; Customers';
}
public function customers_detail() {
$this->template->content = new View('admin/customers/detail');
$this->template->body_class .= ' detail';
$this->template->title .= ' &rsaquo; Customers &rsaquo; Detail';
}
} // End Admin Controller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment