stefanb,
I think you missing the point with this framework. If it is not protected or
private, then it is a public method that is accessible from the url. If it
is doing ay type of data logic place it in the model, what makes this
public method so special that it must be in your controller?
--
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 cake-php@googlegroups.com
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
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...
You should probably move this function to a component. What are you
doing in the function? Why is it in this particular controller?
If you insist on keeping it in the controller, you can do something in
beforeFilter(), perhaps something with $this-Security like calling
blackhole()? Not sure if
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