17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 773 Views |
-
common functionality in all controllers

17 July 2008 at 12:03am
Hi,
I'd like to have access to a function from every one of my controllers. Is there a best practice for doing this?I'm thinking of extending ContentController, adding the function and then have all my controllers extend this Controller.
Thoughts? Better ways to do it. I'm new, so I apologize if I missed a previous thread or documentation on where this is addressed.
Todd
-
Re: common functionality in all controllers

17 July 2008 at 9:58am
If all your custom page extend Page and their Controllers extend Page_Controller then you could just put it in Page_Controller since all the other controllers will inherit it
| 773 Views | ||
|
Page:
1
|
Go to Top |


