If you want to create component in joomla 2.5 following steps are require
I create just simple code for that
Steps
Remember that the folder name which you given com_student means student will you have to given in files In that .xml file is main file in which you have to give the files and folder path and component settings
Steps
Remember that the folder name which you given com_student means student will you have to given in files In that .xml file is main file in which you have to give the files and folder path and component settings
- Create a folder for which you want to create component like For student : com_student
- Following are folder hierarchy
student.xml
site/student.php
site/index.html
admin/index.html
admin/student.php
admin/sql/index.html
admin/sql/updates/index.html
admin/sql/updates/mysql/index.html
admin/sql/updates/mysql/0.0.1.sql
- Now just past the some code in relevant files
Student.xml
<?xml version="1.0" encoding="utf-8"?> <extension type="component" version="2.5.0" method="upgrade"> <name>Student!>/name> <autthor>Amrish>/autthor> <copyright>Copyright Info>/copyright> <license>License Info>/license> <version>0.0.1</version> <update> <schemas> <schemapath type="mysql">sql/updates/mysql</schemapath> </schemas> </update> <files folder="site"> <filename>index.html</filename> <filename>student.php</filename> <filename>controller.php</filename> <folder>views</folder> <folder>models</folder> </files> <administration> <menu>Student!</menu> <files folder="admin"> <filename>index.html</filename> <filename>student.php</filename> <folder>sql</folder> </files> </administration> </extension>
Index.html
this file code is same for all index.html file
<html><body bgcolor="#FFFFFF"></body></html>
Site/student.php
write any message which you want to print
Like : Student Management System
Admin/student.php
write any message which you want to print
Like : Student Management System Administrator
admin/sql/updates/mysql/0.0.1.sql
admin/sql/updates/mysql/0.0.1.sql is an empty file allowing to initialise schema version of the com_student component. Leave it blank
you can also do the model and create view.
For more information visit : Joomla 2.5 Component Creation
No comments:
Post a Comment