HuyPV
Wednesday, August 4, 2010
Load helper trong action
$this->getContext()->getConfiguration()->loadHelpers('Url');
Load helper trong model
sfProjectConfiguration::getActive()->loadHelpers(array('Url'));
Load helper trong template
use_helper('Url');
Load helper từ cấu hình YAML (auto)
- quên rồi!!!
Title:
Symfony Load helper everwhere to use
Description:
Load helper trong action $this->getContext()->getConfiguration()->loadHelpers('Url'); Load helper trong model sfProject...
...
Rating:
4