Joomla 页面中的自定义 php 代码 [英] Custom php code in Joomla page

查看:20
本文介绍了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 代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆