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
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
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
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
@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
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');
> ...
> }
--~--~-
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