本文介绍了Joomla 获取页面 ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!
问题描述
我正在尝试从 Joomla 2.5.14 获取当前的 page_id、user_id 和日期.这是我正在使用的代码:
I'm trying to get the current page_id, user_id and date from a Joomla 2.5.14. This is the code I'm using:
JFactory 工作正常(我获取当前用户和日期)但 jinput 出现错误:
JFactory is working ok (I get the current user and date) but jinput is giving the error:
推荐答案
你忘记定义$jinput
:
附带说明,您不需要使用 &
.
On a side note, you don't need to use &
.
希望能帮到你
这篇关于Joomla 获取页面 ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!
本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!