joomla - 尝试应用过滤器时在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
但即便如此,它还是会出错,这会是什么?如果你想要更多细节,我可以发给你。
解决方案
我才发现,他基本上不接受任何命名法。一定是$ this->state
。不像上面那是$this->estado
。
推荐阅读
- django - 如何使用自定义用户模型在 Django Admin 中更改用户更改页面导航栏的元素?
- javascript - 如何防止 valueerror:flask socketio 中的有效负载中的数据包过多
- javascript - 在表单提交之前将 CRLF 替换为 textarea 中的 LF(客户端)
- github - 创建了 github 上提到的问题模板,但它们没有以某种方式激活
- count - 在 xquery 中计数
- python - FastAPI / sqlite3.InterfaceError: Error binding parameter 0 - 可能是不支持的类型
- java - 如何删除在 Firebase 数据库中提供某些条件的一个或多个子级
- php - Stripe Checkout webhook 不传递客户电子邮件?
- python - 如何在 python 中运行 Tor 网络中的一小部分代码(Windows)
- html - 为什么我在媒体查询中的选择器不起作用