User talk

Scionescire

From Joomla! Documentation

Hello![edit]

Why you have undone statements added by me in the two lessons of "Adding a Model to the site part" and "Adding a view" in the Component Development Tutorial? --Nenomaz (talk) 04:48, 12 February 2015 (CST)

Hello!![edit]

Which statements are you talking about?

I updated the guide parts 1 to 11 following the github updated code from the lesson 10 step.

Scionescire (talk) 05:01, 12 February 2015 (CST)

Contribution[edit]

If you watch the history of these two lessons:

You can see my recent contribution, I had added some content important for make "View and Model" work in a component that before there wasn't... --Nenomaz (talk) 05:38, 12 February 2015 (CST)

Hello world meets coding standards[edit]

I haven't noticed your contribution before, sorry!

I have followed the step-10 lesson github code. That code removed some ininfluent parts, probably they were good for the 2.5 version of Joomla but not for the 3.x one. I've personally tested the whole code so I'm sure that the parts I've removed are irrilevant (e.g. some jimports, that in 3.x are automatically done).

Once I've updated the github code from 10 to 1 to follow that standard, I updated the guide too (that was quite a fast part, so that's why I missed other contributions).

Hope it's clear now, but if it's not, don't esitate to ask ;)

P.S. If I'm correct, and you are italian too, we can answer in our language =D

Scionescire (talk) 05:57, 12 February 2015 (CST)

Github code?[edit]

Could you explain me what is "github code"? I think GitHub is a server to share code, not wiki content.. but I don't know Joomla Policies... could you explain these to me?

P.S. Si sono italiano :-) cerco di usare l'inglese perchè voglio impararlo ;-)

Yes, github![edit]

Yes, github is exactly what you know, a server to share code! But, as you know, its code can be forked, so you can provide corrections, improvements and so on, and that's what happened. Someone corrected the code (that was the same as the wiki), but not the wiki, so the updated and correct version was only in the github code. While revisiting it (I'm trying to understand how to develop a 3.x Joomla MVC component) I stumbled upon that version so I decided to update the wiki too.

As for now I'm trying to update step 12 ;)

Scionescire (talk) 12:06, 12 February 2015 (CST)

Sorry[edit]

Sorry but I'm not able to understand this method of track the wiki development through GitHub... However, I will reinsert the content I'd added before, I hope you help me to understand this approach of using github for the wiki by the Joomla Community. --Nenomaz (talk) 04:23, 16 February 2015 (CST)

Github[edit]

The Joomla Wiki about the MVC in version 3.x was more like a copy of the one for the 2.5 version. In fact some code was redundant or unnecessary. For example a lot of jimport listed in the 2.5 guide are now automatically done in the 3.x one, so there is the need to remove them from the code. Same thing for the overloading of the display method you posted. If you notice the code works both ways, with and without the declaration of the display method (I guess those lines are now done by default following an exact name pattern (eg. HelloWorldMODEL, HelloWorldCONTROLLER, so if you are in a HelloWorld class and you need its controller the program will search for NAME+CONTROLLER thing.

Hence in github someone with a more knowledge about the new version standars cleaned up the code.

For this reason I followed those hints and rewrited the code in the guide to follow those standards. ;)

P.S. I reverted your change ;)

Scionescire (talk) 09:09, 16 February 2015 (CST)

Sure?[edit]

Meanwhile I needed to put those statements in the display method of the controller to trigger the view... because before didn't work! I think this manner of explain developers the joomla framework is wrong, also keeping track of the wiki through GitHub is wrong... --Nenomaz (talk) 09:38, 16 February 2015 (CST)

Sure![edit]

I tested each part of the guide I updated and it's working (I don't think the guy accepted the merge on github would rather accept it either). Maybe some mispelled names or missing files? Sometimes some lines missing from the main xml could give a really bad headache ;)

I used github as a 'source' but other than testing, I searched for the reasons of the editing, so I'm pretty sure that code is good enough to be on the wiki =D

Scionescire (talk) 10:08, 16 February 2015 (CST)

Main xml[edit]

Could you give me some guidelines about the main xml? Thanks in advance! --Nenomaz (talk) 04:53, 18 February 2015 (CST)

Main[edit]

Are you following the J3.x Guide?

If you are following that guide you can use programs (on Windows I use Diffuse) or online tools (https://www.diffchecker.com) to compare the files you have with the new inserted to discover the changes.

Sometimes I found myself in trouble because I have forgotten to update the helloworld.xml xD

I suggest to read the step by step J3.x guide from the beginning using the diff program/site to see the changes.

At step 14 I started to highlight in the guide code the new added lines, when I'll have some time I'll add this useful feature (I discovered recently as in the cheatsheet there is no word!) to the previous steps too!

Scionescire (talk) 05:28, 18 February 2015 (CST)

Solved[edit]

You are right! I've solved being more careful with the main xml file. --Nenomaz (talk) 09:26, 25 February 2015 (CST)

Tutorial Highlight[edit]

Good!

I have ended the tutorial update, the last 2 were not complete for the 2.5 version either! I've added the highlights to all of the 3.x version guides so you can immediately spot the differences!

Scionescire (talk) 09:49, 25 February 2015 (CST)