12 lines
383 B
PHP
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');
|
|
}
|
|
}
|