摘要:
1. 在 app/conig中建立一个自命名的文件: abc.yml2. 在 app/config/config.yml中导入abc.yml文件头部:imports:- { resource: parameters.yml }- { resource: security.yml }- { resource: abc.yml }3. 在abc.yml中定义变量:parameters:myname: wangyingxi4. 在代码中便可以使用了:某action中:$key = $this->container->getParameter('myname');retur 阅读全文
posted @ 2014-03-08 18:04
Vince
阅读(675)
评论(0)
推荐(0)

浙公网安备 33010602011771号