public function pipelineReportAction() { //$base_url = Zend_Registry::get('baseurl'); //$this->view->inlineScript()->appendFile($base_url . '/js/all_level_combos.js'); $this->view->role_id = $this->_identity->getRoleId(); $stock_master = new Model_StockMaster(); $result = $stock_master->getPipelineProductReport(); $today_date = new DateTime(date("Y-m-d")); $last_year = $today_date->modify("-1 year"); $this->view->from_date = $from_date = $last_year->format('d F, Y'); $this->view->to_date = $to_date = date("d F, Y"); $this->view->result = $result; $this->view->headTitle("Pipeline Report, {$from_date} - {$to_date}"); }