Joomla 页面中的自定义 php 代码
我正在尝试将 Joomla 1.5.9 页面中的表源从页面中的硬编码 html 更改为从 SQL 数据库获取信息.这样做的正确方法是什么?创建一个新模型或组件并以某种方式在页面中使用它?
I'm trying to change the source of a table in a Joomla 1.5.9 page from hardcoded html in the page to getting the information from a SQL database. What is the proper way to do this? Create a new model or component and somehow use that in the page?
我发现了这些:http://docs.joomla.org/Tutorial:How_to_use_the_database_classes_in_your_scripthttp://docs.joomla.org/How_to_use_the_database_classes_in_your_script
I found these: http://docs.joomla.org/Tutorial:How_to_use_the_database_classes_in_your_script http://docs.joomla.org/How_to_use_the_database_classes_in_your_script
但我不确定在哪里编写 php 代码以及如何在页面中访问它.如果有人可以向我指出自定义 php 的基本教程或其他任何名称,我是 webb 开发的新手,我会很高兴.
But I'm not sure where to write the php code and how to access it in the page. If somebody could point me to a basic tutorial for custom php or whatever it's called, I'm new to webb development, I'd be happy.
推荐答案
您可以使用 Jumi 扩展,用于将自定义 PHP 代码添加到 Joomla 页面或模块.
You can use the Jumi extension to add custom PHP code to a Joomla page or module.
相关文章