0

我在 joomla 模型中创建自定义过滤器的红色教程http://docs.joomla.org/J2.5:How_to_add_custom_filters_to_components。据说我要创建一个自定义字段,所以我以后可以使用setState和getState。但我想知道是否可以通过简单地编写来设置自定义状态:

$this->setState('filter.custom', 'something');

然后在其他地方使用它,即

getlistquery $this->getState('filter.custom');?

我的意思是......我试过这个但它没有用,所以我期待着可以做些什么来让它工作..?

4

0 回答 0