( ! ) Warning: Invalid argument supplied for foreach() in F:\xampp\htdocs\zendfrm\application\views\scripts\index\index.phtml on line
46
Call Stack
#
Time
Memory
Function
Location
1 |
0.0025 |
340224 |
{main}( ) |
..\index.php:0 |
2 |
0.0512 |
3626240 |
Zend_Application->run( ) |
..\index.php:26 |
3 |
0.0512 |
3626240 |
Zend_Application_Bootstrap_Bootstrap->run( ) |
..\Application.php:366 |
4 |
0.0514 |
3626296 |
Zend_Controller_Front->dispatch( ???, ??? ) |
..\Bootstrap.php:97 |
5 |
0.0689 |
4936608 |
Zend_Controller_Dispatcher_Standard->dispatch( object(Zend_Controller_Request_Http)[17],
object(Zend_Controller_Response_Http)[18] ) |
..\Front.php:954 |
6 |
0.0850 |
5283280 |
Zend_Controller_Action->dispatch( string(11) ) |
..\Standard.php:295 |
7 |
0.0853 |
5286600 |
IndexController->indexAction( ) |
..\Action.php:516 |
8 |
0.1033 |
5725992 |
Zend_Controller_Action->render( string(5), ???, ??? ) |
..\IndexController.php:29 |
9 |
0.1037 |
5726216 |
Zend_Controller_Action_Helper_ViewRenderer->render( string(5),
null, bool ) |
..\Action.php:212 |
10 |
0.1060 |
5726352 |
Zend_Controller_Action_Helper_ViewRenderer->renderScript(
string(17), null ) |
..\ViewRenderer.php:921 |
11 |
0.1061 |
5726352 |
Zend_View_Abstract->render( string(17) ) |
..\ViewRenderer.php:900 |
12 |
0.1072 |
5767528 |
Zend_View->_run( string(67) ) |
..\Abstract.php:888 |
13 |
0.1077 |
5771416 |
include( 'F:\xampp\htdocs\zendfrm\application\views\scripts\index\index.phtml' ) |
..\View.php:108 |
( ! ) Notice: Array to string conversion in F:\xampp\htdocs\zendfrm\application\controllers\IndexController.php on line
24
Call Stack
#
Time
Memory
Function
Location
1
|
0.0025
|
340224
|
{main}( )
|
..\index.php:0
|
2
|
0.0512
|
3626240
|
Zend_Application->run( )
|
..\index.php:26
|
3
|
0.0512
|
3626240
|
Zend_Application_Bootstrap_Bootstrap->run( )
|
..\Application.php:366
|
4
|
0.0514
|
3626296
|
Zend_Controller_Front->dispatch( ???, ??? )
|
..\Bootstrap.php:97
|
5
|
0.0689
|
4936608
|
Zend_Controller_Dispatcher_Standard->dispatch( object(Zend_Controller_Request_Http)[17],
object(Zend_Controller_Response_Http)[18] )
|
..\Front.php:954
|
6
|
0.0850
|
5283280
|
Zend_Controller_Action->dispatch( string(11) )
|
..\Standard.php:295
|
7
|
0.0853
|
5286600
|
IndexController->indexAction( )
|
..\Action.php:516
|
将控制器中的 $this->view->$res=$res; 改为$this->view->res=$res; 它就像个session 赋与其名即可
//控制器中的一个函数
public function indexAction()
{
// action body
file_put_contents("d:/mylog.txt", __FILE__.date('y-m-d h:i:s')."index..\r\n",FILE_APPEND);
//如果什么都没有些,相当于有以下一句话;用view/scripts/index/index.phtml
$messageModel=new Message();
$res=$messageModel->fetchAll()->toArray();
//怎样把控制器获取的数据 array object int
$this->view->res=$res;
/* echo '<pre>';
print_r($res);
echo '</pre>';
*/
$this->render('index');
}
分享到:
相关推荐
本文实例讲述了php下foreach()错误提示Warning: Invalid ...错误提示:Warning: Invalid argument supplied for foreach() in E:wampwwwmyshopcart.php on line 95 二、解决方案: 错误提示 Warning:Invalid argumen
解决raise InvalidURL(f"Invalid URL url!r: No host supplied")
在用的apache服务器,启动报错: 代码如下:shmget() failed: Invalid argumentFailed to start up concurrent users module!经检查为kernel.shmmax设置未生效(copy另一系统的,数值设置大了) 如下: 代码如下:...
查看samba的版本是4版本的: [root@redhat_192.168.0.12 16:08:07 ~]#rpm -qa samba samba-4.9.1-6.el7.x86_64 找了好久,百度上一直都是mount命令加各种参数,确认了用户跟密码都没有问题,目录权限也都给了,最后...
想研究std::invalid_argument的朋友可以参考下
NULL 博文链接:https://wilian.iteye.com/blog/1992365
添加cookies到浏览器 driver.delete_all_cookies() ...for i in range(0,len(cookiesInfo)): driver.add_cookie(cookiesInfo[i]) driver.refresh() 问题解决 方式一: driver.delete_all_cookies
大家都知道foreach的参数如果不是数组类型,在运行的时候 就会出现类似“Warning: Invalid argument supplied for foreach() in XXX”warning信息。
invalid multibyte character sequence 870告警1
jspdf html页面生成pdf j jspdf html页面生成pdfspdf html页面生成pdf
我在做一个加密芯片项目时,需要用到此库其中的一些函数,就编译了这个动态库。 要注意的是,不同版本的iconv里的函数名字有时候不同: 1.有的版本是iconv_open、iconv_close这样的名字。 2.有的版本是libiconv_open...
ValueError: invalid literal for int() with base 10的错误 网上同样的错误有人建议用round(float(“1.0″)),但是解决不了我这个问题,round(float(“1.0″))是用于解决浮点数转换为整形数的, 而我这个则是因为...
1. Warning 280:’i’:unreferenced local variable 说明局部变量i 在函数中未作任何的存取操作 解决方法消除函数中i 变量的宣告 2 Warning 206:’Music3’:missing function-prototype 说明Music3( )函数未作宣告或...
The PCF8563 is a CMOS1 Real-Time Clock (RTC) and calendar optimized for low power consumption. A programmable clock output, interrupt output, and voltage-low detector are also provided. All ...
再和前台对接的时候一直报错:invalid url domain 在网上查找了很多资料,有说端口的问题,也有其它各种原因的,一大堆,最后我发现以上的说法都不准确,这是我配置的地址(错误的地址) 把配置地址的http://去掉...