首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 互联网 >

Joomla2.5 Component 组件开发入门之HelloWorld 详解

2012-11-22 
Joomla2.5Component 组件开发入门之HelloWorld 详解!一初级HelloWorld组建是放在components目录下面的。1、

Joomla2.5 Component 组件开发入门之HelloWorld 详解!

一  初级HelloWorld

组建是放在components目录下面的。

1、我们可以在Joomla根目录下直接新建一个目录com_helloworld

注意:组建目录都是以com_开头的。

2、在com_helloworld目录下新建 helloworld.php  

注意:命名要和目录名一致!

helloworld.php 内容:


这个错误是正常的,因为我们没有安装正规的方法来。

继续看下面

二、helloworld之完善

用正规的方法,来开发一个可安装的组件,ZIP压缩文件!

重新在外面另建一个文件夹com_helloworld

在此文件夹下新建:

site/helloworld.php  (前台)

site/index.html (前台)

admin/helloworld.php (后台)

admin/index.html (后台)

hellowold.xml (安装该组件的一些配置信息)

下面来介绍各文件的内容:

site/helloworld.php


前台测试:http://localhost/administrator/index.php?option=com_helloworld

Joomla2.5  Component 组件开发入门之HelloWorld 详解


热点排行