Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() ![]() |
Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2010-02-19 (6 years ago) ![]() | ![]() ![]() ![]() | Total: 991 | All time: 3,534 This week: 963![]() |
Version | License | PHP version | Categories | |||
joomla-mvc-lesd 1.0 | GNU General Publi... | 4.0 | PHP 5, Libraries, Content management, D... |
Description | Author | |
This package provides base classes for developing Joomla extension using the MVC design pattern. |
Joomla! MVC Classes for Backend Development 1. Goal: Provide base classes for model, view and controller helping joomla backend development. 2. How to use: During backend development prepare the folder strucuture in this way: controllers libs models tables views Place the 3 files (jmodellesd.php, jviewlesd.php and jcontrollerlesd.php) inside the "libs" folder. Create your MVC classes extending the classes JModelLesd, JViewLesd and JControllerLesd instead of Joomla! base classes. -------------------------------------------------------------------------------- About the JModelLesd class: You need to set the $_filter_field property with the name of the field for Example of model class: <?php defined('_JEXEC') or die(); require_once( JPATH_COMPONENT.DS.'libs'.DS.'jmodellesd'.'.php' ); class MyextensionModelExamples extends JModelLesd { function __construct() { parent::__construct(); $this->_filter_field = 'name'; } } ?> -------------------------------------------------------------------------------- About the JViewLesd class: The class work with 2 templates: default.php - for presenting the data grid with pagination, order and filter fields form.php - form for edit or add records ( see the example files ) Example of View Class: <?php defined( '_JEXEC' ) or die( 'Restricted access' ); require_once( JPATH_COMPONENT.DS.'libs'.DS.'jviewlesd'.'.php' ); class MyextensionViewExamples extends JViewLesd { } ?> -------------------------------------------------------------------------------- About the JControllerLesd class: Example of controller class: <?php defined( '_JEXEC' ) or die( 'Restricted access' ); require_once( JPATH_COMPONENT.DS.'libs'.DS.'jcontrollerlesd'.'.php' ); class MyextensionControllerExamples extends JControllerLesd { } ?> Notes: There is no controller outside the "controllers" folder. The entry point (hello.php) of the extension handle the default controller. Enjoy Luis Eduardo luis.edudias@gmail.com |
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() ![]() |
Lic. | GNU GENERAL PUBLIC LICENSE | ||
![]() |
Class | Joomla Controller Class | ||
![]() |
Class | Joomla Model Class | ||
![]() |
Class | Joomla View Class | ||
![]() ![]() |
Doc. | Documentation |
![]() |
/ | example |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() ![]() |
Data | Extension XML file |
![]() |
/ | example | / | admin |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() ![]() |
Example | Entry point | ||
![]() ![]() |
Example | null index.html |
![]() |
/ | example | / | admin | / | libs |
File | Role | Description |
---|---|---|
![]() |
Class | Lesd Controller Class |
![]() |
Class | Lesd Model Class |
![]() |
Class | Lesd View Class |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.