php - I want to redirect to another controller's action -
error: exception 'zend_controller_dispatcher_exception' message 'invalid controller specified (phonenumber)' in /usr/share/php5/zend/controller/dispatcher/standard.php:248 stack trace: #0 /usr/share/php5/zend/controller/front.php(954): zend_controller_dispatcher_standard->dispatch(object(zend_controller_request_http), object(zend_controller_response_http)) #1 /usr/share/php5/zend/application/bootstrap/bootstrap.php(97): zend_controller_front->dispatch() #2 /usr/share/php5/zend/application.php(366): zend_application_bootstrap_bootstrap->run() #3 /home/bina/public_html/telco-portal-testing/public/index.php(22): zend_application->run() #4 {main} in want redirect phonenumbers controller's addnew action , in want pass data of csv file if(!empty($files)){ $name = ($files['csvfile']['tmp_name']); $row = 1; $handle = fopen($name, "r"); if ($handle !== false) { while (($data = fgetcsv($handle, 1000, ",")) !== false) { $num = count($data); // echo "
$num fields in line $row:
enter code here
echo $data[$c]; } } fclose($handle); } // $this->_forward('addnew','phonenumber'); $this->_forward('addnew','phonenumber',null,array($data));
try this:
$this->_redirect('/module/controller/action/');
Comments
Post a Comment