No, I did not try to access them via browser. I think you're missing
my point.
I don't want to use underscore on my public method, since I already
use that convention on my protected methods.
And this public method should be placed in the controller, not the
model...
On 10 Okt, 05:16, rtconner <[EMAIL PROTECTED]> wrote:
> lol, did you actually try to access these methods via browser? if you
> start it with and underscore, it does not get dispatched.
>
> but yeah if you have too many methods in your controller you are
> likely doing something wrong. most logic should go in your models.
>
> On Oct 9, 2:56 pm, stefanb <[EMAIL PROTECTED]> wrote:
>
> > Hmm, I already use _foo() for protected methods and __bar() for
> > private methods.
>
> > What I'm looking for, is some sort of config that allows my to say
> > "don't dispatch these methods" in an array or something...
>
> > On Oct 9, 10:34 pm, rtconner <[EMAIL PROTECTED]> wrote:
>
> > > use an underscore...
>
> > > _functionName() {}
>
> > > On Oct 9, 12:43 pm, stefanb <[EMAIL PROTECTED]> wrote:
>
> > > > Hi,
>
> > > > How can I specify that a public function in a controller should NOT be
> > > > an action?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---