View Single Post
  #4 (permalink)  
Old 06-09-2008, 04:33 PM
notrub225 notrub225 is offline
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

If you only need a function for one specific page, you can define it as a member function within that page's class. for example:
PHP Code:
class indexController() {
        function 
indexAction() {
                
//code here

                
$this->myOwnFunction();
        }

        function 
myOwnFunction() {
                
//your code here
        
}

Reply With Quote