Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-16-2007, 06:10 PM
Junior Member
 
Join Date: Nov 2007
Posts: 4
Default Controller question

I have followed the example in the controller quick start. it works as advertized.

When I add my new action called "list" it won't work.

I have added a ListController to my controllers and a
views/scripts/list/list.phtml

along side the index and error stuff.

When I use these urls it works:
http://localhost/addressbook/
http://localhost/addressbook/index
http://localhost/addressbook/index/index

When I use these it does not:
http://localhost/addressbook/list
http://localhost/addressbook/list/index

I get redirected to my error.phtml page. Which brings up another question, how do I find out what caused me to go to the error page? I see nothing in the logs. Can I display the error message somehow?

Thanks,
Tim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-17-2007, 06:25 AM
SpotSec's Avatar
Senior Member
 
Join Date: Feb 2007
Location: United States
Posts: 121
Default

list/list would goto list controller and list action
__________________
Zym Framework - A Zend Framework extension library w/ demo app

SpotSec Blog:
http://spotsec.com/blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-17-2007, 07:26 AM
Junior Member
 
Join Date: Aug 2007
Posts: 9
Send a message via ICQ to Mike
Default

Quote:
Which brings up another question, how do I find out what caused me to go to the error page?
Check out Zend Framework: Zend Controller Exceptions.
There is a method called Zend_Controller_Front::throwExceptions().
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-18-2007, 12:45 PM
Junior Member
 
Join Date: Nov 2007
Posts: 4
Default

Quote:
Originally Posted by Mike View Post
Check out Zend Framework: Zend Controller Exceptions.
There is a method called Zend_Controller_Front::throwExceptions().
Thank! I learned I had misnamed my footer.

Last edited by gikjl : 11-18-2007 at 01:04 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-18-2007, 12:52 PM
Junior Member
 
Join Date: Aug 2007
Posts: 9
Send a message via ICQ to Mike
Default

PHP Code:
public function indexAction()
{
$this->view->title 'Address Book';

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:20 PM.