public function userOptions() { $model = new Cms_Model_User(); $data = $model->fetchAll(); $propKey = 'id'; $propVal = 'firstname'; return $this->_render($data, $propKey, $propVal); }
/** * * รายการของ admin ที่จะส่ง email notify ให้ * @return array */ function getRecivers() { $account = new Cms_Model_User(); $select = $account->select()->where('notifications=?', 'Yes'); return $account->fetchAll($select); //$resivers = ''; //foreach($result as $row){ // $resivers[] = $row->mail(); //} //return join(",", $resivers); }