![]() |
Cannot access an Action via url
When you try to access an action in the url in Zend Framework: "http://www.example.com/index/action/" it doesn't seem to access the method in the Action Controller, what am I doing wrong? :-!
|
Can you post the code?
|
Quote:
Code:
<?phpCode:
<?phpCode:
<?php |
You're asking a lot here! :-) A lot of code to look through. Try accessing this URL though: http://www.example.com/index/index/
It looks like you're calling the action "action", which would be public function actionAction(). |
Quote:
What program are you using to create these quick diagrams? |
The Lovely YUML.me! :-)
|
Quote:
|
Quote:
Say I had a guestbook which linked to example.com/guestbook/ Thing is it wouldn't access the indexAction of the GuestbookController, nor would it access any other actions if I also applied those in the url. |
Fixed it so far, had something to do with $this->layout()->content not in the layout script. :P
|
so the layout thingy is the culprit. nice job orc.
*pokes wildhoney* haha! :) |
Quote:
|
| All times are GMT. The time now is 09:12 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0