状態:未解決
閲覧数:581
投稿日:2010-05-12
更新日:2017-07-27
class template.phpに、下記記載があるが、
何をしてるかさっぱり分からないッス!
templateNameがなければ、とりあえず、'system_dummy.html'って入れとけ?
どゆこと?
function isModuleCached($templateName,$dirname)
{
if(!$templateName)
$templateName='system_dummy.html';
return $this->is_cached('db:'.$templateName, $this->getModuleCachedTemplateId($dirname));
}
function fetchModule($templateName,$dirname)
{
if(!$templateName)
$templateName='system_dummy.html';
return $this->fetch('db:'.$templateName, $this->getModuleCachedTemplateId($dirname));
}
何をしてるかさっぱり分からないッス!
templateNameがなければ、とりあえず、'system_dummy.html'って入れとけ?
どゆこと?
function isModuleCached($templateName,$dirname)
{
if(!$templateName)
$templateName='system_dummy.html';
return $this->is_cached('db:'.$templateName, $this->getModuleCachedTemplateId($dirname));
}
function fetchModule($templateName,$dirname)
{
if(!$templateName)
$templateName='system_dummy.html';
return $this->fetch('db:'.$templateName, $this->getModuleCachedTemplateId($dirname));
}
テンプレートがないブロックがあるのは何故?
検索してみたところ、どうやら、
「テンプレートがないブロック」= 「templateNameがない」となり、そこへ、'system_dummy.html'を入れるようになっているっぽいのだが、
ここで、新たな(?)疑問。
1.テンプレートがないブロックがあるのは何故? ex)bulletinのカレンダーブロックとか
2.なんで、「templateNameがない」と、「system_dummy.html」を入れなきゃならないの?
▼カレンダーブロックのスタイルシートを変更するために、独自クラスを付与したい | XOOPSStyle
http://xoops-0.w4c.work/modules/d3blog/details.php?bid=151
▼Bulletin|カレンダーのリンク色の変更 - Wander Wonder xField
http://xfield.info/modules/tautech/content0156.html
「テンプレートがないブロック」= 「templateNameがない」となり、そこへ、'system_dummy.html'を入れるようになっているっぽいのだが、
ここで、新たな(?)疑問。
1.テンプレートがないブロックがあるのは何故? ex)bulletinのカレンダーブロックとか
2.なんで、「templateNameがない」と、「system_dummy.html」を入れなきゃならないの?
▼カレンダーブロックのスタイルシートを変更するために、独自クラスを付与したい | XOOPSStyle
http://xoops-0.w4c.work/modules/d3blog/details.php?bid=151
▼Bulletin|カレンダーのリンク色の変更 - Wander Wonder xField
http://xfield.info/modules/tautech/content0156.html