Jump to content

How can I add a new Controller in Zend Framework 1.8 and make it work?


guelmismr

Recommended Posts

HI:

            I've been reading the Zend's quickstart an I also downloaded many examples of how to work with Zend framework 1.8 and tried to add new controllers, but I don't know how to make them work, who is the front controller? How can I access from the navigator, is it through http://localhost/Zend_example_project/public/index/newcontroller/newaction  or http://localhost/Zend_example_project/public/newcontroller/newaction, please send me an example that works or a guide.

 

Thanks in advance. ;D

guelmismr

The public directory your trying to refer to in your url is actually meant to be your web servers document root. The rest of your application is placed outside the document root.

 

Once you have your application in the correct place, you simply refer to new controller by.... http://localhost/controllername/actionname.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.