输出配置文件config.php中的配置项:使用C方法
config.php:
<?php
return array(
//'配置项'=>'配置值',
'name'=>'Donsen',
);
控制器:
echo C('name');