简体   繁体   中英

Custom php code in Joomla page

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?

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

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 install The Php Pages Component in joomla 1.5 .Where you can write your custom php code in joomla .

Also using this Php Pages Component you can Also write the query in the Php Code Itself.

So That you can extract the data from the database.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM