public function action_detail($id) { if (Input::method() == 'GET') { // $query = DB::select()->from('collections')->where('id',$id)->execute(); // Model_Collection::query()->related(array('colimge')); $data['row'] = Model_Collection::find($id, array('related' => array('colimg'))); $this->template->content = View::forge('collection/detail', $data); // $this->template->content->set('query',$query->as_array()); } }