问题描述
我正在尝试将 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 代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)