public function table($table) { return new Table\Selection($this, $this->conventions, $table, $this->cacheStorage); }
public function renderDefault() { $id = '4'; $this->template->program = $this->database->table('posts')->order('created_at DESC')->where('id = ?', $id); $title = $this->database->table('posts')->get($id); $this->template->titulek = $title['title']; }