This works :
<?php
$addlink = $this->Html->url('/items/add');
if ($this->Session->check('Auth.User.id')) {
echo ("
<div class='well' style='padding: 16px 19px;'>
<a href='$addlink' class='btn
primary small'>Add an activity</a>
</div>
");
} else
{
echo ("");
}
?>
On 24 déc, 11:25, euromark <dereurom...@googlemail.com> wrote:
> it does cause the problem :)
> usually a good IDEA would automatically display a parse error
>
> On 24 Dez., 02:52, Geoff Douglas <drdouglas...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Under the logged in condition... you are using double quotes twice... could
> > cause a problem.
--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment