Custom php code in Joomla page(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.
这篇关于Joomla 页面中的自定义 php 代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Joomla 页面中的自定义 php 代码


基础教程推荐
- 超薄框架REST服务两次获得输出 2022-01-01
- Libpuzzle 索引数百万张图片? 2022-01-01
- mysqli_insert_id 是否有可能在高流量应用程序中返回 2021-01-01
- 在 PHP 中强制下载文件 - 在 Joomla 框架内 2022-01-01
- 在 Woocommerce 中根据运输方式和付款方式添加费用 2021-01-01
- 在多维数组中查找最大值 2021-01-01
- WooCommerce 中选定产品类别的自定义产品价格后缀 2021-01-01
- 通过 PHP SoapClient 请求发送原始 XML 2021-01-01
- 如何在 PHP 中的请求之间持久化对象 2022-01-01
- XAMPP 服务器不加载 CSS 文件 2022-01-01