I know what is wrong but I don't know how can I fix it. In my browser
in view page I see:
<script type="text/javascript" src="/js/register.js"></script> <- it
should be 1 line down because I use in this file library jquery !
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/all.js"></script>

My layout looks like:
<?php use_javascript('jquery.js') ?>
<?php use_javascript('all.js') ?>
<?php include_javascripts() ?>
<?php include_stylesheets() ?>

Why symfony add register.js before jquery.js ??




On 14 Mar, 09:27, Sid Bachtiar <[email protected]> wrote:
> Really?
>
> In view.yml in mymodule/config folder:
>
> registerSuccess:
>   javascripts:  [register]
>
> Should add web/js/register.js to registerSuccess.php template. Did you
> check using firebug check? E.g.: to see for any error, 404, 500, etc
>
> Don't forget to clear cache and make sure that if this is Linux that
> register.js has correct file access.
>
>
>
> On Sat, Mar 14, 2009 at 8:20 PM, dziobacz <[email protected]> wrote:
>
> > also doesn't work :)
>
> > On 13 Mar, 21:57, Sid Bachtiar <[email protected]> wrote:
> >> Whoops, leave out the .js, for example
>
> >> javascripts: [registration]
>
> >> (no .js)
>
> >> On Fri, Mar 13, 2009 at 12:07 PM, dziobacz <[email protected]> 
> >> wrote:
>
> >> > It is strange - Your method is logical but it doesn't work for me :/ I
> >> > cleared cache. I have also tried to do that for all module
> >> > 'registration' in yourapp/frontend/config/view.yml:
> >> > registration:
> >> >  javascripts: [registration.js]
> >> > but it also didn't work.
>
> >> > So I will have to use my method. :O
>
> >> > On 12 Mar, 22:34, Sid Bachtiar <[email protected]> wrote:
> >> >> > In template:
> >> >> > <?php use_javascript('registration') ?>
> >> >> > <?php include_javascripts() ?>    <------------- this is VERY
> >> >> > IMPORTANT !!!
>
> >> >> I think this is unconventional way to do it ... read my other reply on
> >> >> how to do it in view.yml which is more conventional in Symfony
>
> >> >> On Fri, Mar 13, 2009 at 10:26 AM, dziobacz <[email protected]> 
> >> >> wrote:
>
> >> >> > I know !! :)
>
> >> >> > In template:
> >> >> > <?php use_javascript('registration') ?>
> >> >> > <?php include_javascripts() ?>    <------------- this is VERY
> >> >> > IMPORTANT !!!
>
> >> >> > On 12 Mar, 19:41, dziobacz <[email protected]> wrote:
> >> >> >> I have file 'registration.js' with javascript only for page
> >> >> >> 'registerSuccess.php' - I added it in template registerSuccess.php:
> >> >> >> <?php use_javascript('registration.js') ?>
>
> >> >> >> but it doesn't work - why ?
>
> >> >> >> If I add this file in layout:
> >> >> >> <?php use_javascript('jquery.js') ?>
> >> >> >> <?php use_javascript('skrypty.js') ?>
> >> >> >> <?php include_javascripts() ?>
>
> >> >> >> it works but I want this file only for site 'registerSuccess.php'.
>
> >> >> --
> >> >> Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
>
> >> --
> >> Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
>
> --
> Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to