0
我怎麼能從另一個函數過濾另一個過濾器的函數呢? 如樹枝中的過濾器調用
public function getFilters()
{
return array (
'test' => new \ Twig_Filter_Method ($this, 'test'),
'test1' => new \ Twig_Filter_Method ($this, 'test1', array('is_safe' => array('html')))
);
}
public function test($test)
{
return;
}
public function test1($test)
{
// how to test call?
}
感謝和抱歉,我的英語