首页 > 解决方案 > 尝试应用过滤器时在joomla中获取()方法返回null

问题描述

有人使用 Joomla 吗?我在使用以下屏幕时遇到问题:

[错误信息] https://i.stack.imgur.com/COlZQ.png

这一行的代码是错误的:

$ordenarCol = $this->estado->get('list.ordering', 'texto');
$ordenarDir = $this->estado->get('list.direction', 'ASC');

我没有指导,我只是在关注这篇文章:https ://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_decorations_to_the_backend

但即便如此,它还是会出错,这会是什么?如果你想要更多细节,我可以发给你。

标签: joomla

解决方案


我才发现,他基本上不接受任何命名法。一定是$ this->state。不像上面那是$this->estado


推荐阅读