How To Publish My Extension’S Js Files In The <Head></head>

[b]The problem is solved

Thanks Y.Fan:

you can set $jsOptions in your YourAssertFile


  $jsOptions['position'] = View::POS_HEAD

[/b]

how to publish my extension’s js files in the <head></head>

i published my extension’s js files in the view ,But the location of the js file at the end of the HTML,Because of this,my extension can’t work

note: If I put the js files in the <head></head>,my extension will work normally

That’s the wrong way to fix it. Framework files should not be modified like that.

I don’t want to modify the framework files , But I did’t come out with another way.

I hope you can give me some advice.thanks

you can set $jsOptions in your YourAssertFile




  $jsOptions['position'] = View::POS_HEAD



Thank you very much! :D