Hello,

for MR
on a project, I have a BaseController and on it's Initialize method, I
used to pull some data I used on every page. That was nice for a
while, but recently I started to return a lot of Json and of course
base.Initialize fires and does a lot of stuff that has nothing to do
with the json requests.

Now, I could separate json and layout methods via different
controllers, but this would lead to a lot of code repetition. I would
like to avoid to have a AddressController and another
AddressJSONController because they shared too much and I could not
even use inheritance.

Now I *could* grab this data only when there is Layout. Is there some
kind of hook, I can use to put the data into the propertybag based on
this assumption? This would have to happen after the Action completed,
but before data is passed to the view engine. Is there something?

-- 
Jan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to