5.3. 配置

mint可以通过IMint::setOptions(array $options)方法设置选项,其中$options所含的选项有以下几个

template-dir和compile-dir可以有三种形式:

  1. 相对于当前的程序文件的路径,比如 ./mint/template和./mint/compiled

  2. 相对于iframework/IApplication.php文件的路径,比如 ../view/mint/;template和../view/mint/compiled

  3. 绝对路径,比如 /home/web/I-F/mint/template和 /home/web/I-F/mint/compiled