List of MVC components

For Joomla! 1.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Locked
User avatar
OSFreak
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 222
Joined: Fri Aug 26, 2005 12:14 pm
Location: Belgium
Contact:

List of MVC components

Post by OSFreak » Mon Mar 16, 2009 7:32 pm

Hello World.

I searched, but didn't found it. A List of Joomla! 1.5 components build on the MVC pattern.
So other developers can learn from it.
This is a incomplete list of components i found.

RedEVENT
Simplelist
League Results
Messaging
Joomla Estate Agency

If you know other components, feel free to add.
New: Joomla! 1.5 Component Code Generator v0.8 : http://www.joomlafreak.be/joomla_compon ... generator/
Online Joomla! 1.5 CSS Guide http://www.joomlafreak.be/joomla_free_cssguide

"Joomla! is not a product, it's a project!" - Peter Russell

User avatar
David-Andrew
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Thu Mar 20, 2008 3:37 pm
Location: The Netherlands
Contact:

Re: List of MVC components

Post by David-Andrew » Tue Mar 17, 2009 12:31 am

ccNewsletter
Awesome Joomla! Extensions by Chill Creations http://www.chillcreations.com
cciDEAL, ccInvoices, ccNewsletter

User avatar
dam-man
Joomla! Exemplar
Joomla! Exemplar
Posts: 7961
Joined: Fri Sep 09, 2005 2:13 pm
Location: The Netherlands
Contact:

Re: List of MVC components

Post by dam-man » Thu Mar 19, 2009 7:39 am

RD-Autos Free and Pro version are both written in MVC structure.
http://www.rd-media.org
Robert Dam - Joomla Forum Moderator
Dutch Boards | Joomla Coding Boards | English Support Boards

alteiis
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Wed Jan 18, 2006 3:08 pm

Re: List of MVC components

Post by alteiis » Fri May 15, 2009 12:01 am

There's no JRequest::getVar inModels ?
Last edited by alteiis on Sun May 17, 2009 3:28 pm, edited 1 time in total.

User avatar
dam-man
Joomla! Exemplar
Joomla! Exemplar
Posts: 7961
Joined: Fri Sep 09, 2005 2:13 pm
Location: The Netherlands
Contact:

Re: List of MVC components

Post by dam-man » Fri May 15, 2009 2:17 pm

alteiis wrote:There's no JReFor this components there's no JRequest::getVar inModels ?
Has nothing to do with the MVC sturucture, you have to construct those requests in your models
Robert Dam - Joomla Forum Moderator
Dutch Boards | Joomla Coding Boards | English Support Boards

alteiis
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Wed Jan 18, 2006 3:08 pm

Re: List of MVC components

Post by alteiis » Sun May 17, 2009 4:00 pm

Absoluty false...In MVC all http request should be handle in controller and passed to model. Perhaps, if you consider JResquest class as a model class (very strange !?!!!). By you using that, models and controllers are tightly coupled and if you want to change request environment (command line, soap,etc.), you have to change the model and the purpose of MVC is to avoid that.
It's particulary strange for Java programmers accustomed to object, mvc, design pattern architecture or framework...
This thing is clear in Sun documentation and all major MVC implantations.
I know, it's choice for *pragmatic* implantations, probably in major part because of 3 layers models / MVC2 confusion...

Once more sorry for my bad english :/

alteiis
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Wed Jan 18, 2006 3:08 pm

Re: List of MVC components

Post by alteiis » Thu Jul 02, 2009 12:29 pm

It seems there is a lot of changes in Joomla 16's code :
- no more ten thousand globals (globals are very bad from the OO point of view), less of $mainframe, $option, etc. It's cool and most devs could do that in their 1.5 components.
- less direct use of POST/GET from models and views, e.g. admin code for categories implementation is very well coded !

Is there a summary of architectural or coding rules changes and evolution ?
Thanks

User avatar
dam-man
Joomla! Exemplar
Joomla! Exemplar
Posts: 7961
Joined: Fri Sep 09, 2005 2:13 pm
Location: The Netherlands
Contact:

Re: List of MVC components

Post by dam-man » Thu Jul 02, 2009 12:57 pm

If yo take a look at the weblinks administrator model:

Code: Select all

	function __construct()
	{
		parent::__construct();

		$array = JRequest::getVar('cid', array(0), '', 'array');
		$edit	= JRequest::getVar('edit',true);
		if($edit)
			$this->setId((int)$array[0]);
	}
There is constructor where you can see the JRequest::getVar statements.
That where I ve learned this. If it's diffrent it's OK with me.
I've learned OOP here with Joomla! (I do only have studied normal PHP without OO
Robert Dam - Joomla Forum Moderator
Dutch Boards | Joomla Coding Boards | English Support Boards

User avatar
dam-man
Joomla! Exemplar
Joomla! Exemplar
Posts: 7961
Joined: Fri Sep 09, 2005 2:13 pm
Location: The Netherlands
Contact:

Re: List of MVC components

Post by dam-man » Thu Jul 02, 2009 12:57 pm

Let's go on topic now :)
Robert Dam - Joomla Forum Moderator
Dutch Boards | Joomla Coding Boards | English Support Boards

alteiis
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Wed Jan 18, 2006 3:08 pm

Re: List of MVC components

Post by alteiis » Thu Jul 02, 2009 2:06 pm

lol,
I tried to explain than the new J1.6 categorie component implementation is different from the J1.5 one and far better (take a look at categories implementation)...

I already post about this problem in J1.5 here http://forum.joomla.org/viewtopic.php?f=304&t=315198, with explanations.
In 2002, I have made a lot of tutos about MVC1/MVC2 for my students but in french...there was in part based on several very goods articles from Sun :
Sun => Excellent all devs should read chapter 8
Sun Mvc1 with clear diagram
Sun: Very good discussion about mvc1 / mvc2 comparaison
Apple from cocoa doc mvc1)
Another

My poor english (In late 80's / early 90's, French university prefers mathematics to foreign languages :/) does not allow me to participate like I want.


Locked

Return to “Joomla! 1.5 Coding”