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 代码


- SoapClient 设置自定义 HTTP Header 2021-01-01
- 如何定位 php.ini 文件 (xampp) 2022-01-01
- Laravel 仓库 2022-01-01
- 带有通配符的 Laravel 验证器 2021-01-01
- PHP Count 布尔数组中真值的数量 2021-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- Mod使用GET变量将子域重写为PHP 2021-01-01
- 从 PHP 中的输入表单获取日期 2022-01-01
- 正确分离 PHP 中的逻辑/样式 2021-01-01
- 没有作曲家的 PSR4 自动加载 2022-01-01