讨教关于实现各种模块的问题
首先我已经实现了基本的MVC模式,能通过 .com/ 实现基本hello,world程序
现在我要实现的是 .com/blog ,./com/news 之类的模块,遇到了困难
我的目录树,ZF是1.5.0
/application
/controllers
IndexControllers.php
BlogControllers.php
/models
/ views
/scripts
/blog
index.phtml
/index
index.phtml
/ library
/zend
/Smarty
/ public
.htaccess
index.php
根据官方的文档7.3.2.2配置了参数
$front->setControllerDirectory(array(
'default' => '../application/controllers',
'blog' => '../modules/blog/controllers',
'news' => '../modules/news/controllers',
可是运行的时候,输入.com/blog 就出现404错误
请问高手:
我出现的问题在哪里?
我该如何才能正确实现这些功能?
[ 本帖最后由 wjcx0113 于 2008-4-6 20:41 编辑 ]
|