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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-21-2008, 12:08 PM
Junior Member
 
Join Date: Apr 2008
Posts: 1
Default actions as widgets

The Zend_Layout functionality lends itself to groups of actions that return a fragment of html which is then incorporated into a whole page with the layout. However, if I write an action that generates my nav menu, for example, I might not want this to be addressable by users (ie I don't want them to be able to visit http://example.com/nav/display).

I think that what this boils down to is that I need, within my ActionController's action methods, to be able to determine whether or not the current controller is the first action to be activated. So, if I go to http://example.com/myaction, myactionController::index will be called, add a bunch of actions to the actionstack helper and then each of these, as they execute, will perform a check to ensure that they are not the initial action (and redirect to index if they are).

Hope that makes sense. Is there a standard way to do this? It's entirely possible that it's something really obvious that I've missed.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-24-2008, 08:23 AM
Junior Member
 
Join Date: Apr 2008
Posts: 3
Default

I am searching a solution for this particular issue myself too.

Last edited by Nicodémus : 04-24-2008 at 08:32 AM.
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 04:02 PM.