Jump to content

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


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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.