예제 #1
0
 public function byCategoryAction()
 {
     $id = (int) $this->getRequest()->getParam('id');
     $table = new Application_Model_DbTable_News();
     $this->view->category = $table->categoriesTable()->find($id)->getRow(0);
     $this->view->select = $table->select()->where('CategoryID = ?', $id);
 }