Joomla组件常备函数
- 如何获得Joomla框架的文档:
- $document =&$mainframe->getDocument();
- 如何获取URL Request的参数.
- JRequest::getVar(‘task’);
- JRequest::getVar(‘name’, ‘Joomla! 1.5.0′);
- 取得模版文件路径
- JApplicationHelper::getPath(‘front_html’, ‘com_name’)
- 设定网页的Title
- $document = &$mainframe->setPageTitle(“Example componenet”);
尚无评论