我正在开发一个实时应用程序,我正在使用第三方来完成它.但是现在我必须将node.js与socket.io一起使用而不是第三方.
我正确安装了node.js(v0.4.12)并使用命令检查它node -v.但是当我使用npm install socket.io命令安装socket.io时,我收到了这个错误.
npm ERR! install failed Error: Required package: options(latest) not found. (Found: ["0.0.3"])
npm ERR! install failed (required by: ws@0.4.23)
npm ERR! install failed at /usr/share/npm/lib/build.js:192:19
npm ERR! install failed at cb (/usr/share/npm/lib/utils/graceful-fs.js:32:9)
npm ERR! Error: Required package: options(latest) not found. (Found: ["0.0.3"])
npm ERR! (required by: ws@0.4.23)
npm ERR! at /usr/share/npm/lib/build.js:192:19
npm ERR! at cb (/usr/share/npm/lib/utils/graceful-fs.js:32:9)
npm ERR! Report this *entire* log at <http://github.com/isaacs/npm/issues>
npm ERR! or email it to <npm-@googlegroups.com> …Run Code Online (Sandbox Code Playgroud) 我使用zend框架1.
我需要在另一个文件中包含phtml文件并将参数发送到第一个文件.
例如:
我有indexController.php
我$numberOfItem在控制器内部定义了
我需要 在index.phtml中渲染(包含) menu.phtml并向其发送变量$numberOfItem
谢谢
我正在使用带有 Zend 框架的 Doctrine 1,并且必须从 Doctrine 1 升级到 Doctrine 2 以使用数据映射器而不是活动记录设计模式。
有无论如何或说明可以做到这一点吗?