最近用Joomla做一个系统,需要的一些功能需要自己写组件,这里记录一下Joomla模块的开发过过程
建立一个models目录
products.php
product.php
建立目录views . 这个目录的根目录下文件是获得视图对象
com_products->views->products->view.html.php
com_products->views->product->view.html.php
.....代码和上面类似,都是得到取得想到的数据
com_products->views->products->tmpl->default.php
com_products->controller.php
com_products->router.php
这样,一个Joomla模块的开发基本就完成了。记录一下,以作以后查阅...