- 帖子: 132
- 收到的致谢 0
<Files *.js.gz>
AddEncoding gzip .js
ForceType application/x-javascript
</Files>
<Files *.css.gz>
AddEncoding gzip .css
ForceType text/css
</Files>
jtablesession::Store Failed
DB function failed with error number 145
Table './joomlacn/jos_session' is marked as crashed and should be repaired SQL=INSERT INTO `jos_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` ) VALUES ( 'ff32b693f0aba521e16988dfc10cc625','1234536385','','0','1','0' )
$doc = &JFactory::getDocument();
$doc->addStyleSheet('modules/mod_mymodule/tmpl/style.css');
echo JHTML::stylesheet('style.css', 'modules/mod_mymodule/',false);
/plugins/system/CssJsCompress/js.php?js=*.js.gz
/plugins/system/CssJsCompress/css.php?css=*.css.gz
这样的形式,会吃掉部分代码!<script language="Javascript" src="http://域名/script/cb.js">
两者生成的html代码有什么不同吗?请贴出来看看
function stylesheet($filename, $path = 'media/system/css/', $attribs = array())
{
if(strpos($path, 'http') !== 0) {
$path = JURI::root(true).'/'.$path;
};
$document = &JFactory::getDocument();
$document->addStylesheet( $path.$filename, 'text/css', null, $attribs );
return;}