Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Component from Joomla 2.5 to Joomla 3.0

Since the release of Joomla 3.0 Alpha last night, I wanted to try my hand at starting to convert the Joomla 2.5 component I have written to the new Joomla 3.0. I have been following all of the development convos, they said the JController, JView, and JModel would be changed to have "Legacy" after each one and that would be about all you would have to change.

I have run into the other problem, getting an error message as follows:

"Strict Standards: Declaration of MYCOMPONENTController::display() should be compatible with that of JControllerLegacy::display()"

I have looked an more documentation and posts and no one has come across this or talking about it, so just wanted to get it out there, and see what I need to do to fix this. Thanks all!

like image 846
Caleb Nance Avatar asked Jul 13 '12 16:07

Caleb Nance


People also ask

What is the current version of Joomla?

The latest version of Joomla! is 4.2. 2 and includes the latest and greatest features from the developers supporting Joomla. Please see the latest release announcement for more information.

Is Joomla still supported?

Support ends on 17 August 2023 for Joomla 3.10.


1 Answers

Found the answer, the function display needed one more parameter that I did not have in there. So changed from this:

class MYCOMPONENTController extends JControllerLegacy
{
    function display($cachable = false)

To this:

    function display($cachable = false, $urlparams = false)

Hopefully this helps someone!

like image 77
Caleb Nance Avatar answered Oct 05 '22 08:10

Caleb Nance