Page 1 of 1

Component development using new Joomla 3.0 MVC Architecture

Posted: Wed Oct 03, 2012 10:38 pm
by ganesh35
I have been looking for the information regarding Component Development using Joomla 3.0.

I have tried the following references
- http://docs.joomla.org/Potential_backwa ... tform_11.1
- http://docs.joomla.org/Developing_a_Mod ... troduction

But I would like to create a proper native component for Joomla 3.0 instead of a Legacy.
It would be appreciated, if someone can guide me with a sample component or a reference to find it.

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Thu Oct 04, 2012 5:00 am
by alikon
have you looked at com_ola ?

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Thu Oct 04, 2012 7:54 am
by ganesh35
alikon wrote:have you looked at com_ola ?
I have tried. But it was made with Legacy Classes.
I am upgrading my joomla 2.5 components to 3.0 native. I just want to make them one time upgrade cause Legacy classes will be removed soon.

Also I am interested in utilizing the new controller system and exceptions.

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Thu Oct 04, 2012 8:35 am
by sovainfo
You should be looking at

docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3.0_and_Joomla_Platform_12.1
docs.joomla.org/Developing_a_Model-View-Controller_Component/3.0/Introduction
docs.joomla.org/Developing_a_Model-View-Controller_Component/3.0

tip: search docs.joomla.org on 3.0 for urls (don't work on galaxy tab 2)

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Thu Oct 04, 2012 1:38 pm
by Soren Jensen
Hi ganesh35, I am with you. I would also love to see how a "real" Joomla 3.0 component is supposed to be written, but it appears that all the examples we have are just adding "Legacy" to class names.

I need to know this as we develop the Joomla Component Creator and the developers that use our tool are eager to start building 3.0 components.

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Thu Oct 04, 2012 6:22 pm
by alikon
this matter is discussed too on Joomla! General Development https://groups.google.com/forum/?fromgr ... wdM5dKB8qI

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Sat Oct 06, 2012 6:09 pm
by ganesh35
Hello All,
After hours of digging and struggling. I understood that we should go with the Legacy option for now.

Joomla 3.0 preparing us (developers) to think about New MVC architecture in future. Right now we don't have enough documentation.

I strongly believe let the experts do the documentation for the Joomla 3.0 Component development.

Till then just keep pasting Legacy. Ignore about writing the Joomla 3.0 way.

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Wed Oct 10, 2012 10:57 pm
by Wigman27
Thank you very much ganesh35!! I have been looking right into this for ages with no result.

I have been watching the writing of development of 3.0 component, hopefully that will be added to as time goes on.

I would love to know how to find out what's new in version 12 of the platform if you know of a good list. I'm going to develop a component using 2.5 and learn that way. Then when the documentation for 3.0 is a little more comprehensive.

Thanks again for your help!!

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Wed Oct 24, 2012 5:53 pm
by amirhosein
Hi,
Thanks for all
i install ola component but it causing error
any body knows whay?
------------
Strict Standards: Declaration of OlaController::display() should be compatible with that of JControllerLegacy::display() in C:\xampp\htdocs\joomla3\administrator\components\com_ola\controller.php on line 38
------------

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Thu Oct 25, 2012 5:20 am
by alikon
you should put on your php.ini

Code: Select all

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Wed Oct 31, 2012 7:52 pm
by oliverhr
amirhosein wrote: ------------
Strict Standards: Declaration of OlaController::display() should be compatible with that of JControllerLegacy::display() in C:\xampp\htdocs\joomla3\administrator\components\com_ola\controller.php on line 38
------------
amirhosein is because the method signature:

Code: Select all

//JControllerLegacy display declaration
public function display($cachable = false, $urlparams = array())...

Code: Select all

//com_ola\controller.php method display declaration
function display($cachable = false)...
..............
I'm a totally newbie to joomla but I want to start developing for v3 but there is a lack of sample code.

-

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Tue Nov 06, 2012 2:05 pm
by Extalionez
how quickly to expect the documentation to create extensions for joomla 3.0 without legacy?

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Sat Nov 10, 2012 12:03 pm
by ghazal
alikon wrote:you should put on your php.ini

Code: Select all

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
Hello,
no hard feelings, but this kind of reply is very, very useless in this context.
To get Strict standards errors when developing is mandatory. It helps us understand where our coding is wrong when we update an extension in the new joomla 3.0 environment (PHP 5.3.X and upward, new joomla API).
I can understand that people who only want to launch a joomla site don't need/don't want those pesky Notices, but the thread here is about "component development AND using new joomla 3.0 MVC architecture".
If something is not working properly, it helps targeting where the errors lie.

@oliverhr
Thanks, your reply helped me a lot.

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Mon Nov 12, 2012 2:52 am
by dtsecurity
alikon wrote:you should put on your php.ini

Code: Select all

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
Yes, alright....

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Mon Nov 12, 2012 3:21 am
by Wigman27
I must say that I am in full agreeance with you! I installed a pre purchased joomla template for a customer a couple of months ago and there was page after page of errors, all be they were not fatal errors but still. As developers I think it's critical to build our code error free!

Thanks

Lee
ghazal wrote:
alikon wrote:you should put on your php.ini

Code: Select all

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
Hello,
no hard feelings, but this kind of reply is very, very useless in this context.
To get Strict standards errors when developing is mandatory. It helps us understand where our coding is wrong when we update an extension in the new joomla 3.0 environment (PHP 5.3.X and upward, new joomla API).
I can understand that people who only want to launch a joomla site don't need/don't want those pesky Notices, but the thread here is about "component development AND using new joomla 3.0 MVC architecture".
If something is not working properly, it helps targeting where the errors lie.

@oliverhr
Thanks, your reply helped me a lot.

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Mon Nov 12, 2012 12:26 pm
by sovainfo
Apparantly it was very usefull for the person who posted here by mistake! He just installed ola and didn't know what to do! Obviously not a component developer! Or maybe he missed the change in php concerning strict!

A developer wouldn't put the strict message in this topic at all, he would fix it or ignore it!

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Mon Nov 12, 2012 7:07 pm
by alikon
there are a lot of unskilled developer ?
i'm one of them :'(
I hope that with community help we can become a little bit skilled
:geek:

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Mon Nov 12, 2012 7:40 pm
by ghazal
alikon wrote:there are a lot of unskilled developer ?
i'm one of them :'(
I hope that with community help we can become a little bit skilled
:geek:
+1

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Thu Feb 28, 2013 7:14 am
by ArtRichards
Well, tbh, just b/c someone is a "real" developer doesn't mean they know everything about a given framework or standard.

Anywhoo... I searched and searched, was completely unable to find any modules working on Joomla 3.0 without errors. I tried a few of the modules but was getting nowhere. Here's a version I've thrown together that seems to work nicely on Joomla 3.0 Included are the Component and Module from the much revered tutorials.

http://txdev.net/WORKING_JOOMLA_3.0_COM_AND_MOD.zip

Hope this helps someone out there. Joomla devs, you need to learn to share the love. :D <3

- Art Richards

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Thu Feb 28, 2013 10:04 am
by Tonie
@artRichards. If you don't mind, I've removed your download file as it was a .exe file. Not really a file extension common for a plugin.

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Thu Feb 28, 2013 10:16 pm
by ArtRichards
@Tonie, Thanks, I've modified the package to conform to site standards.

Hopefully someone will find some use for this.
Where do all the cool kids gather these days?

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Fri Mar 01, 2013 8:21 am
by ghazal
Hi,
@ArtRichards
Tonie is a nice guy. I was about to report your post as potentially harmful because of this exe file.
Where do all the cool kids gather these days?
Maybe here :
Joomla! CMS Development
https://groups.google.com/forum/?fromgr ... la-dev-cms
or here :
Joomla! General Development
https://groups.google.com/forum/?fromgr ... ev-general

Final decisions seen here :
https://github.com/joomla/joomla-cms

If you want to join one of the test groups :
https://groups.google.com/forum/?fromgr ... Jrw2pO7GEw
Read Elin's first message.

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Sat Mar 02, 2013 8:24 am
by alikon

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Sat Mar 02, 2013 9:18 am
by ghazal
Thanks, I've modified the package to conform to site standards.
Can't open your stuff on a mac.
Pls bear in mind that joomla community isn't OS-centric.

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Sat Mar 02, 2013 9:40 am
by ArtRichards
Here's a proper zip file.

http://TxDev.net/Joomla_3.0_Example_Mod ... _First.zip

Let me know if this isn't compatible. Who knew people would have such difficulties with a compressed file? But it does illustrate the diverse needs of such a broad community as Joomla! I'm looking forward to the event and hoping I'll be able to lend a hand!

Edit: *Thank you* alikon for the link. Do you know if the SB team will be participating in the upcoming pre release event?

Edit: Continuing to squash bugs...

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Sat Mar 02, 2013 11:01 am
by ghazal
Looks like you developed your extensions "by the book", netbeans and all, nice.
But maybe, you should delete the "nbproject" folder in the component and the Makefile file in the module.
Also, as you pointed out, joomla community is made of a very large range of users, from absolute beginners (barely knowing html) to seasoned devs.
To target the first group, it'd be better to name your zip file something like my_comp_UNZIP_FIRST as your component is installed correctly when using your global zip file, but not the module.
It is possible though to install component/modules/plugins all together.

One last thing :
A strict standard error when creating a new Message :
Strict Standards: Declaration of HelloWorldTableHelloWorld::_getAssetParentId() should be compatible with JTable::_getAssetParentId($table = NULL, $id = NULL) in /administrator/components/com_helloworld/tables/helloworld.php on line 12

NB : on a test site, I always set PHP errors On

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Wed Mar 06, 2013 10:32 am
by David-Andrew
I'm maintaining a full list with background information here:
http://www.chillcreations.com/news/joom ... -resources

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Thu Aug 22, 2013 5:49 pm
by pishro
hi,
my question is: are there any good examples on using the new MVC from Joomla?
http://forum.joomla.org/viewtopic.php?f=727&t=814726
I advise this post. thank yao for help.

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Fri Jan 31, 2014 6:03 pm
by solracpt
Hi,

For all developers in Joomla 3.

For the error notice "_getAssetParentId() should be compatible with JTable::_getAssetParentId($table = NULL, $id = NULL)"

The SOLUTION is:
JTable::_getAssetParentId(JTable $table = null, $id = null)

Must add JTable to the variable $table on the function in the table file/files.

I hope this helps you out!
PS:Using php.ini to hide error notice, is not so good idea..

Regards

Re: Component development using new Joomla 3.0 MVC Architect

Posted: Sat Feb 01, 2014 9:04 am
by ghazal
Using php.ini to hide error notice, is not so good idea..
I agree with this, definitely.