我正在阅读typo3 扩展文件,并看到以下代码:
function main($content, $conf) {
$this->conf = $conf;
$this->pi_setPiVarDefaults();
$this->pi_loadLL();
$this->template = $this->cObj->fileResource($this->conf['templateFile']);
$GLOBALS['TSFE']->set_no_cache();
我曾经var_dump($conf);
输出$conf
,它显示:
array(53) { ["includeLibs"]=> string(47) "typo3conf/ext/jc_job/pi1/class.tx_jcjob_pi1.php" ["userFunc"]=> string(18) "tx_jcjob_pi1->main" ["templateFile"]=> string(28) "EXT:jc_job/pi1/template.html" ["pidList"]=> string(1) "7" ["code"]=> string(4)...
从结果中,我可以看出一些配置来自这个文件:ext_typoscript_setup.txt
,但有些不是。
所以我的问题是:
里面是$conf
什么?或者什么文件组成 $conf
?