This commit is contained in:
Naomi Aro 2013-07-22 10:47:11 -04:00
parent 634eb40a0c
commit 19ba788bae
2 changed files with 19 additions and 19 deletions

View file

@ -119,14 +119,14 @@ class PlayouthistoryController extends Zend_Controller_Action
unset($this->view->form); unset($this->view->form);
} }
public function createListItemAction() public function createListItemAction()
{ {
$request = $this->getRequest(); $request = $this->getRequest();
$params = $request->getPost(); $params = $request->getPost();
Logging::info($params); Logging::info($params);
$historyService = new Application_Service_HistoryService(); $historyService = new Application_Service_HistoryService();
$historyService->createPlayedItem($params); $historyService->createPlayedItem($params);
} }
public function editListItemAction() public function editListItemAction()

View file

@ -4,19 +4,19 @@ class Application_Form_EditHistoryItem extends Zend_Form
{ {
public function init() { public function init() {
$file_id = new Zend_Form_Element_Hidden('his_file_id'); $file_id = new Zend_Form_Element_Hidden('his_file_id');
$file_id->setValidators(array( $file_id->setValidators(array(
new Zend_Validate_Int() new Zend_Validate_Int()
)); ));
$this->addElement($file_id); $this->addElement($file_id);
/* Title form element */ /* Title form element */
$title = new Zend_Form_Element_Text('his_file_title'); $title = new Zend_Form_Element_Text('his_file_title');
$title->setLabel(_('Title:')); $title->setLabel(_('Title:'));
$title->setAttrib('class', 'input_text'); $title->setAttrib('class', 'input_text');
$title->addFilter('StringTrim'); $title->addFilter('StringTrim');
//$title->setDecorators(array('viewHelper')); //$title->setDecorators(array('viewHelper'));
$this->addElement($title); $this->addElement($title);
} }