Yes, ur right. It works fine now after changing
'class'=>'question_link,'
to 'class'=>'question_link',  What a silly mistake huh :)

By the way, do you know on what is the difference between $this->Html-
>link and $html->link?

thank you.

On May 12, 12:28 am, Ryan Schmidt <[email protected]> wrote:
> On May 11, 2011, at 10:45,varaiwrote:
>
> > the onclick statement in the following code is giving an error:
> > Parse error: parse error, expecting `')'' in C:\wamp\www\merry_flowers
> > \views\pages\faq.ctp on line 13
>
> > <div id="questionDiv"><?php echo $this->Html->link('Q.Are admissions
> > to Merry Flowers program open throughout the
> > year?','#',array('class'=>'question_link,'
> > 'onClick'=>'toogle_answerDiv(\'answerDiv1\');return false;')); ?></
> > div>
> > <div id="answerDiv1">Playgroup admissions are open for most part of
> > the year. Admissions to the programs of Nursery, JR KG &amp; SR KG
> > though close by 31st August in that given year.</div>
>
> > Can somebody tell me on what is my mistake?
>
> You're missing a comma, or rather, it's probably in the wrong place.
>
> Instead of:
>
> 'class'=>'question_link,'
>
> you need:
>
> 'class'=>'question_link',

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to