开发者

Help with zend framework setup?

I asked this question yesterday, looking if more people can help me out.

I installed the minimal zend framework on my freshly installed linux.

Using zf create project command I created a project, no errors inside the linux's html folder.

I go to localhost/projectname and it just opens up the project directory, once I go to public, it shows me the welcome to zend framework page (seems right, right?). I add a public action to indexcontroller but it doesn't link up with zend framework.

Can anyone explain the issue here or skype me at darius.co开发者_JS百科der ???

I've never been able to install a working installation of zend framework and only need to see it done once. Can anyone PLEASE help ? I have team viewer as well.


As you have created your project via zf command

zf create project <project name>

You can create controller , action from the same zf command

zf create action <action name> <controller name>

zf create controller <controller name>

So in this way you don't want to create view pages etc . All will be done by zf tool .

Now coming to your problem .

As you told all is well until you created a public action in IndexController.php

So the url will be http://localhost/projectname/public/

Now when you created an action contact in IndexController

You can access via

http://localhost/projectname/public/index/contact

So what you was missing I guess is the public .

Let me know whether this helps you .

Thanks

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜