开发者

MooTools and Joomla, how does it work?

I've heard that mootools is installed with Joomla and you can use it from within any extension you build without having to include it again, is that correct?

I've been learning some JQue开发者_C百科ry and i wanted to build a module with it but now that mootools is included i'd rather do it with it. Is there a good tutorial on using mootools inside joomla modules?


Beware : Joomla, up to 1.5.18 version, is Mootools 1.1.x based.

It is announced that next 1.5.X version will be Moo 1.2 based.

Release due July 15th 2010.

Joomla Beta(x) 1.6 is Moo 1.2 based though.

Magic to include your JS script within joomla, be it module or component:

<?php 
$doc =& JFactory::getDocument(); 
$doc->addStyleSheet("js/style.css"); 
$doc->addScript("js/script.js"); 
?>


Try these: Joomla! Docs - Using Mootools

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜