Dar
Dar

Reputation: 401

Yii render Javascript file on view

I want to include JavaScript file in my view.

And I want to render it together and not as script file (registerScriptFile).

How can I do that?

Upvotes: 1

Views: 1276

Answers (1)

user133408
user133408

Reputation:

Just renderFile() it would render any file, remember to wrap it with <script> tag.

Upvotes: 5

Related Questions