Re: Re: Need help w/ Sanitize

2006-09-24 Thread Samuel DeVore
seems like this list as developed an echo echo echo echo echoOn 9/24/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:Cheers guys, it's working now!--~--~-~--~~-- --~---~--~~You received this message because you are subscribed to the Google Groups "Cake PHP" group.To pos

Re: Need help w/ Sanitize

2006-09-24 Thread [EMAIL PROTECTED]
Cheers guys, it's working now! --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PR

Re: Need help w/ Sanitize

2006-09-24 Thread [EMAIL PROTECTED]
Cheers guys, it's working now! --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PR

Re: Need help w/ Sanitize

2006-09-24 Thread Toby (The Balloon Guy) Parent
Oh, yeah, gwoo - too quick to respond. It's the model, stupid! sheesh. thanks for catching that. --~--~-~--~~~---~--~~ 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@googl

Re: Need help w/ Sanitize

2006-09-24 Thread gwoo
@Zack, your php syntax is off. functions must be in methods of the class. @Toby, nice idea, but $uses is a property of the controller not the model and actually pertains to models not utility libs. this will work: class User extends AppModel { var $name="User"; function befo

Re: Need help w/ Sanitize

2006-09-24 Thread Toby (The Balloon Guy) Parent
try this: class User extends AppModel { var $name="User"; var $uses = array('sanitize'); ... } HTH [EMAIL PROTECTED] wrote: > My model looks like this: > > class User extends AppModel > { > var $name = 'User'; > uses('sanitize'); > ... > } --~--~-

Need help w/ Sanitize

2006-09-24 Thread [EMAIL PROTECTED]
My model looks like this: class User extends AppModel { var $name = 'User'; uses('sanitize'); ... } And I am receiving the following error as a result: parse error, unexpected T_STRING, expecting T_FUNCTION If I comment out the "uses" line above, everything works fine. I