...
If you wish to use a newer or older version of jQuery, you just have to pass the version number as first parameter:
Code Block |
---|
Controller::addJquery('1.3.1');
|
...
Tip | ||
---|---|---|
| ||
Version 1.3.1 of jQuery is not available through Hence, you can call If you wish to use 1.3.1's
|
If the file is on your server, you can give its path as a second argument:
Code Block |
---|
Controller::addJquery('1.3.1', '/local/path/to/jquery');
|
...
For instance, if you need to use jQuery's slider:
Code Block |
---|
public function setMedia('ui.slider') { $this->addJquery>addJqueryUI('ui.slider'); } |
This code will automatically include the following dependencies:
Code Block | ||
---|---|---|
| ||
<script type="text/javascript" src="/trunk/js/jquery/ui/ui.core.min.js"></script>
<script type="text/javascript" src="/trunk/js/jquery/ui/ui.widget.min.js"></script>
<script type="text/javascript" src="/trunk/js/jquery/ui/ui.mouse.min.js"></script>
<script type="text/javascript" src="/trunk/js/jquery/ui/ui.slider.min.js"></script> |
...