Prepend their names with an underscore:

// A normal, viewable action
function index() {
    $this->_dry();
}

// Private function, not available via a URL
function _dry() {
    // Blah
}

On Mar 2, 10:08 am, "Mech7" <[EMAIL PROTECTED]> wrote:
> How should i add functions in controller which don't need a view or
> model but are only used in a controller to make the code what easier
> to read? So that you can't acces them through the url ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to