I am using cakephp 2.1 when i am creating add function in controller and view add.ctp
i am getting this error:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ‘,’ or ‘;’ in C:\wamp\www\rohitchoudhary\caketoodoo\app\View\tasks\add.ctp on line 5
Please help me
this is not a cake but a php question.
and not even that.
just make sure you use a decent PHP IDE which would give parsing errors.
then you would find out that you probably placed an invalid char somewhere.
either way you should be able to debug such a parse error yourself.
such error messages are always descriptive enough to get it done on your own.