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);
}
public function createListItemAction()
{
public function createListItemAction()
{
$request = $this->getRequest();
$params = $request->getPost();
Logging::info($params);
$historyService = new Application_Service_HistoryService();
$historyService->createPlayedItem($params);
Logging::info($params);
$historyService = new Application_Service_HistoryService();
$historyService->createPlayedItem($params);
}
public function editListItemAction()

View File

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