错误:异常'Zend_Controller_Dispatcher_Exception',并在/usr/share/php5/Zend/Controller/Dispatcher/Standard.php:248中显示消息'指定了无效的控制器(phonenumber)'堆栈跟踪:#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 在这里我想重定向phonenumbers控制器的addNew动作在这里我想传递csv文件的数据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“
行$ row中的$ num字段:
\ n“; $ row; for($ c = 0; $ c <$ num; $ c){ enter code here
echo $ data [$ c];}} fclose($ handle);} // $ this - > _ forward( 'addNew','PhoneNumber'); $ this - > _ forward('addnew','phonenumber',null,array($ data));
3 回答
试试这个:
你可以尝试这样..
我对zend framwork并不熟悉......我在cakephp的基础上说.....但我认为它可能工作得很好........
你可以像这样使用helper类,虽然你没有提到你正在使用的Framework的哪个版本 .
希望增加一些 .