public static function get($id = '') { if ($id) { $lists = new Listmaker_Model_Lists(); return $lists->find($id)->current(); } else { $lists = new Listmaker_Model_Lists(); return $lists->createRow(); } }
public function getAction() { $view = $this->initView(); $view->lists = Listmaker_Model_Lists::getAll(); $content = $view->render('list/show_all.tpl'); $this->getResponse()->setHeader('Content-Type', $this->fmt)->appendBody($content); }
public static function getAll() { $atts = new Listmaker_Model_Lists(); return $atts->fetchAll($atts->select()->order(array('name'))); }