Try this instead: <?php if(isset($javascript)) { echo ($javascript->link('prototype.js')); echo ($javascript->link('scriptaculous.js')); } ?>
This is the normal way to write an if statement in php. I don't know if the other way will work or not. hydra12 On Jan 15, 7:59 pm, "b logica" <[EMAIL PROTECTED]> wrote: > On Jan 14, 2008 6:21 PM, top123 <[EMAIL PROTECTED]> wrote: > > > > > I'm try this way for access my javascripts file : > > -------- > > <?php > > if(isset($javascript)): > > echo ($javascript->link('prototype.js')); > > echo ($javascript->link('scriptaculous.js')); > > ......... > > endif; > > ?> > > -------- > > but I got something error to include the javascript file to my CAKE, > > my FireBug (Mozzila) said "unterminated.....something", > > As a guess, the "unterminated.....something" suggests that you're > missing a quote somewhere in your JS. > > You'd probably do better to paste the exact error. --~--~---------~--~----~------------~-------~--~----~ 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 PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---