I had ReDJ plugin v 1.6 working on 2.5 Joomla site. But I'm moving on Joomla 3 and this module don't work now - exception errors appears. In change-logs I found this:
Changed class names for ALL models, controllers and views
. So I simply add Legacy
suffix to all classes that handles exceptions. And also change JRequest
(it is deprecated in v3) on $input=JFactory::getApplication()->input;
.
So for now, seems like all is working fine. Except.. component admin panel - i can see component menu, but there is no any content on page. Here is screenshot: http://tinyurl.com/btfzxux
Main controller controller.php
code:
http://pastebin.com/vQjYvYkK
Main component file redj.php
code:
http://pastebin.com/gF6icdE3
I found that dont work line parent::display();
in controller.php
file. And there is no error in logs and display.
And this line calls JControllerAdmin->display()
which is:
/**
* Display is not supported by this controller.
*......................
*......................
*/
public function display($cachable = false, $urlparams = array())
{
return $this;
}
So nothing displayed. I tried to rename extends
definition as JControllerLegasy
(because it supports display() method), but still nothing in component output.
How can i output component content in admin panel in Joomla 3?
Any help appreciated.
S.G.
UPDATE 1:
I publish my code on GitHub. I'm tying to optimize this plugin for Joomla 3. Any help welcome! https://github.com/staniaslavg/ReDJ
P.S. Now redirection list displays and adding a new one works fine. But.. there is no items in item list.
UPDATE 2:
Finally, everything works fine (tested jnly by me, but seems like everything is OK..)
P.S. If nothing displays in tabs - check for DataBase columns. I added a few more. Check whis by var_dump errors variable (like $this->get('Errors')
) in files views/.../view.html.php
Code on GitHub: https://github.com/staniaslavg/ReDJ
in change-logs I found
.. So i really read all that changes and fix all issues. – StasGrin