Indeed, stupid mistake...  Thanks again ! I need to be more careful.

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 <[email protected]> wrote:
> it does cause the problem :)
> usually a good IDEA would automatically display a parse error
>
> On 24 Dez., 02:52, Geoff Douglas <[email protected]> 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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to