public function newAction() { $model = new Varien_Object(); $model->setDepartmets($this->_getRestApiData("/helpdesk/departments")); $model->setStatuses($this->_getRestApiData("/helpdesk/statuses")); $model->setPriorities($this->_getRestApiData("/helpdesk/priorities")); Mage::register('tmcore_support', $model); $this->_initAction(); $this->renderLayout(); }