batufa/application/classes/controller/page.php
2011-04-26 13:52:23 +08:00

12 lines
383 B
PHP

<?php defined('SYSPATH') or die('No direct script access.');
class Controller_Page extends Controller_Template {
public $template = 'page';
public function action_view($id=1) {
$page = ORM::factory('page')->where('id', '=', $id)->find();
$this->template->title = $page->name;
$this->template->content = $page->content;
$this->template->years = "1996-" . date('Y');
}
}