Zend studio/- 框架未正确安装?

发布于 2024-12-08 14:11:39 字数 296 浏览 0 评论 0原文

(请注意:我对 zend 框架完全是菜鸟。我已经使用 CodeIgniter 和 Zend Studio 有一段时间了,但感觉需要“扩展”,可以这么说。)

使用 ZF 生成器内置的 Studios在我的本地主机上为自己安装了全新的 ZF 1.11。但是,当我尝试访问新创建的索引页面时,我看不到任何东西。我担心 Studio 尚未为我的框架应用程序安装正确的文件,因为 require_once 'Zend/Application.php'; 行要求它加载不存在的文件。

也许有人可以伸出援手吗?

谢谢!

(mind you: I'm a complete noob regarding zend framework. I've been using CodeIgniter and Zend Studio for quite some time now but felt the need to "expand", so to say.)

Using the Studios built in ZF generator I made myself a fresh ZF 1.11 install on my localhost. However, when I tried to access my newly made index page, I cannot see a thing. I fear that Studio has not installed the proper files for my Framework appilcation, seeing that the require_once 'Zend/Application.php'; line requires it to load a non-existing file.

Could anyone give a hand perhaps?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

病女 2024-12-15 14:11:39

Zend 库路径未在 php.ini 文件中正确配置。
配置上述文件,并根据您的工作平台将zf.bat或zf.sh放入系统的路径目录中。

然后,配置 httpd.conf 文件并配置虚拟主机,如下所示(在 Linux 平台上)。

<Directory "/var/www/html">
    Options Indexes FollowSymLinks  
    AllowOverride All    
    Order allow,deny
    Allow from all
</Directory>

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /var/www/html
    ServerName www.om.com
    <Directory "/var/www/html">
        AllowOverride All
    </Directory> 
</VirtualHost>

除此之外,

还应该在 Apache 的 httpd.conf 文件中启用 mod_rewrite。

Zend library path is not correctly configured in php.ini file.
Configure the above stated file and also put the zf.bat or zf.sh according to your working platform in the path directory of the system.

Then, configure your httpd.conf file and configure the virtual host as follows (On linux Platform).

<Directory "/var/www/html">
    Options Indexes FollowSymLinks  
    AllowOverride All    
    Order allow,deny
    Allow from all
</Directory>

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /var/www/html
    ServerName www.om.com
    <Directory "/var/www/html">
        AllowOverride All
    </Directory> 
</VirtualHost>

Along with that

mod_rewrite should be enabled in your httpd.conf file of Apache.

心欲静而疯不止 2024-12-15 14:11:39

您能否提供有关您的安装的更多详细信息。我整天使用 Zend,但我不使用 Zend Studio zf 生成器,所以我不知道它是如何设置的。

您正在运行什么操作系统以及您的 apache 服务器设置是什么? (Zend Community Server、wamp、mamp)

您是否已将域名添加到主机文件中? 127.0.0.1 dev.mydomain

你的VHOST是否指向公共目录?

您的公用文件夹中是否有 .htaccess 文件。

我想至少如果设置正确,您应该在索引控制器视图脚本中看到蓝色和绿色的 Zend Framework 输出。

Can you give some more details about your installation. I use Zend all day but I dont use Zend Studio zf generator, so I dont know how it has set you up.

What OS are you running and whats your apache server setup? (Zend Community Server, wamp, mamp)

Have you setup added your domain name to the host file? 127.0.0.1 dev.mydomain

Is your VHOST pointing to the public directory?

Do you have an .htaccess file inside your public folder.

I am thinking at the very least if it is set up correctly you should see the blue and green Zend Framework output in your Index Controller view Script.

丘比特射中我 2024-12-15 14:11:39

确保 /public/index.php 中的路径正确。
您的 zend 库很可能不在 /library 中,因此您必须相应地调整您的路径。

Make sure that the paths are correct in /public/index.php.
Its quite possible your zend library is not in /library and thus you must ajust your paths accordingly.

雅心素梦 2024-12-15 14:11:39

从其网站下载 ZF 并将文件夹“Zend”复制到应用程序库文件夹中,然后再次检查。另外在公共文件夹中打开index.php并将此代码粘贴到顶部

defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'development'));

Download ZF from its website and copy the folder "Zend" inside your application library folder and then check again . Also open index.php inside your public folder and paste this code on top

defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'development'));
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文