[fw-general] want bootstrap to force page/view if missing parameters

2008-05-15 Thread NShewmaker

I have a project which requires a parameter, "group", to be set to one of two
possible values.  If it is not set or set to an invalid value, I want to
display a page that provides links with the valid choices.  Since all
controllers will branch based on the group, I want to do my checking for its
existence in the bootstrap.

My goal is to force the bootstrap to go to choose/index if the group param
is missing or invalid, *regardless of the current controller/action*.  I've
played with the router and request a little, but I'm not having any luck. 
setDefaultActionName() worked, but only for the default path (index/index).

Can anyone provide some guidance, a solution, or maybe a better approach?

TIA
-- 
View this message in context: 
http://www.nabble.com/want-bootstrap-to-force-page-view-if-missing-parameters-tp17232111p17232111.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Re[fw-general] gistry values disappear

2008-02-12 Thread NShewmaker

I initialize my Registry in my bootstrap with a few values.  My index/index
action then tries to add some data, with set().  If I immediately output the
registry, I can see the new addition.  However, it does not persist to other
actions in the index (or any other) controller.

Must all set()s be done in the bootstrap?  Must I use Zend_Session, instead?
-- 
View this message in context: 
http://www.nabble.com/Registry-values-disappear-tp15443175s16154p15443175.html
Sent from the Zend Framework mailing list archive at Nabble.com.