Re: Problem with underscores

2006-11-03 Thread Christian
So when calling: /my_controller/function. And then if in my function I would try to do something like that: $this-MyController-DoSomething() I would then get his error message: cakephp Call to a member function on a non-object If I try to print_r on $this I would see that the object

Re: Problem with underscores

2006-11-03 Thread AD7six
On Nov 3, 9:59 am, Christian [EMAIL PROTECTED] wrote: So for the moment I conclude that CakePhP is working better under PhP5. c. That or that it works perfectly fine on Php4 (which is case insensetive for class function names) SO LONG AS you put var $name = 'CamelCase'; in your

Re: Problem with underscores

2006-11-03 Thread [EMAIL PROTECTED]
i don't have php4 so i can't check, but are you saying that putting var $name = 'CamelCase' thing in your controllers/models/components etc will suffice? so you can call $this-Zebra-findByCamelCase in php4 as long as you do the $name thing? (better to make this sure, once and for all ;) and if

Re: Re: Problem with underscores

2006-11-03 Thread Samuel DeVore
findBy I think you still have to findByCamel_case if your model name is CamelCase in php4 (at least I do in my version) see last comment in this thread http://groups.google.com/group/cake-php/browse_thread/thread/30aaee6b59a3a32f/2831ec4eeedb2a23?lnk=stq=findby+naternum=1#2831ec4eeedb2a23

Re: Problem with underscores

2006-11-02 Thread [EMAIL PROTECTED]
also iirc , findAllBy calls should look something like this in php4: findAllByapple_jack() --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to