Something like this:
<?php
$baseUrl = Yii::app()->baseUrl;
$cs = Yii::app()->getClientScript();
$cs->registerScriptFile($baseUrl.'/js/yourscript.js');
$cs->registerCssFile($baseUrl.'/css/yourcss.css');
?>
More Related Contents:
- How to hide css and js version details from weppalyzer in PHP
- Datepicker validation 18 years of age [closed]
- show links when mouse over text [closed]
- Make file not show anything in console [closed]
- Malicious file?
- How could I make a calendar? [closed]
- Download the text over image using jquery
- how i can connect and login in mysql localhost in php by using this html code
- Only on Firefox “Loading failed for the with source”
- how to get the base url in javascript
- Get the longest text in HTML document using Jquery or javascript
- download file using an ajax request
- Check if an element contains a class in JavaScript?
- Using Javascript in CSS
- jQuery: Get selected element tag name
- Set Webkit Keyframes Values Using Javascript Variable
- Bootstrap 4 File Input
- jQuery jump or scroll to certain position, div or target on the page from button onclick [duplicate]
- Positioning divs in a circle using JavaScript
- Is it possible to style a title? (and with CSS or js?) [duplicate]
- How can I animate a progressive drawing of svg path?
- Change text color based on brightness of the covered background area?
- Invert text color on mouse hover
- How can I return a view from an AJAX call in Laravel 5?
- CSS Transition doesn’t work with top, bottom, left, right
- Add CSS rule via jQuery for future created elements
- Javascript-Setting background image of a DIV via a function and function parameter
- How can I animate the drawing of text on a web page?
- Disable images in Selenium Python
- Axios request giving getter setter methods instead of data queried