Tuesday, 14 October 2008

Migrating Joomla 1.0 to Joomla 1.5

One of the tasks DART Creations has been doing lately is to migrate modules / plugins and other software from Joomla 1.0 to Joomla 1.5. Here you will find a number of changes which are required to migrate Joomla software from 1.0 to 1.5. Hopefully this will save others some searching and frustration.

One of the things that has changes is in the name of global variables. The following are a few changes

Joomla 1.0.xJoomla! 1.5 Example
$mosConfig_absolute_path JPATH_ROOT C:\xampp\htdocs\joomla15
$mosConfig_live_site JURI::root(); http://localhost/joomla15
  JURI::base(); http://localhost/joomla15/administrator/
  JPATH_BASE C:\xampp\htdocs\joomla15\administrator
  JPATH_COMPONENT C:\xampp\htdocs\joomla15\administrator\components\com_example
  JPATH_COMPONENT_ADMINISTRATOR C:\xampp\htdocs\joomla15\administrator\components\com_example
  dirname(__FILE__) C:\xampp\htdocs\joomla15\administrator\components\com_example
global $database $database =& JFactory::getDBO();  
mosMenuBar::startTable(); JMenuBar::startTable();  
defined('_VALID_MOS') or die('Direct Access to this location is not allowed.'); defined( '_JEXEC' ) or die( 'Go Away' );  
<mosinstall type="component" version="1.0.0"></mosinstall> <install type="component" version="1.0.0"></install>  
$myparam = mosGetParam( $_REQUEST, 'myparam'); $myparam = JRequest::getVar('myparam');  
global $my; $user = & JFactory::getUser();  

 

Links which can also aid your migration to Joomla 1.5

The following seems to be a very good forum post about the changes from 1.0 to 1.5

http://forum.joomla.org/viewtopic.php?f=304&t=177581

http://dev.joomla.org/component/option,com_jd-wiki/Itemid,32/

http://dev.joomla.org/component/option,com_jd-wiki/Itemid,/id,tips:make_your_extensions_fit/

http://www.waltercedric.com/joomla-mainmenu-247/339-joomla-15/1175-components-code-migration-to-joomla-15.html

More details will be added as we acquire it :)

Comments
Search RSS
Jithu Thomas     |121.247.175.xxx |2009-03-05 05:03:52
During migration
Finding the current template
we use
JOOMLA
1.0.X
$mainframe->getTemplate();
and in
JOOMLA
1.5.X
JApplication::getTemplate();
//string getTemplate
Only registered users can write comments!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated ( Tuesday, 14 October 2008 )