you have to "echo" those :)
echo $javascript->link('mootools-for-dropdown', false);
On Jun 7, 8:43 pm, Dima <[email protected]> wrote:
> I'm pretty new to CakePHP so it is likely that my issue is rather
> simple to fix. I have a custom element which I created called
> nav_menu.cpt. I call this element from default.cpt using:
>
> <?php echo $this->element('nav_menu'); ?>
>
> For my element to work properly, I need to import 3x .js files and
> 1x .css file; I have placed these files in /webroot/js/ and /webroot/
> css/ respectively and am attempting to call them inside the element
> like so:
>
> <?php
> $javascript->link('mootools-for-dropdown', false);
> $javascript->link('UvumiDropdown-compressed', false);
> $javascript->link('nav_menu', false);
> $html->css('uvumi-dropdown');
> ?>
>
> However, when the page loads and I check page source, it doesn't
> include these files in the header. I've also tried calling this
> following line in default.cpt with no success:
>
> <?php e($scripts_for_layout); ?>
>
> What am I doing wrong??
>
> Thanks,
> Dima
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
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