Actions

J1.5

Difference between revisions of "Upgrading your template index file"

From Joomla! Documentation

m (Prettified the table.)
(Upgrading your index.php file)
Line 1: Line 1:
===Upgrading your index.php file===
+
===Updaten van je index.php file===
  
# Replace '''_VALID_MOS''' with '''_JEXEC'''
+
# Vervang '''_VALID_MOS''' met '''_JEXEC'''
# Replace '''$mosConfig_absolute_path''' with '''$this->baseUrl'''
+
# Vervang '''$mosConfig_absolute_path''' met '''$this->baseUrl'''
# Replace '''$mosConfig_live_site''' with '''$mainframe->getCfg( 'live_site' )'''
+
# Vervang '''$mosConfig_live_site''' met '''$mainframe->getCfg( 'live_site' )'''
# Replace fixed strings with translatable strings.  For example, replace '''echo 'Hello'''' with '''echo JText::_( 'Hello' )'''
+
# Vervang fixed strings met translatable strings.  Bijvoorbeeld, replace '''echo 'Hello'''' with '''echo JText::_( 'Hello' )'''
# Replace calls to mosGetParam with calls to JRequest::getVar.  For example, replace '''$id = mosGetParam( $_REQUEST, 'id', 0 );''' with '''$id = JRequest::getVar( 'id', 0 );'''
+
# Replace calls to mosGetParam with calls to JRequest::getVar.  Bijvoorbeeld, replace '''$id = mosGetParam( $_REQUEST, 'id', 0 );''' with '''$id = JRequest::getVar( 'id', 0 );'''
# Replace '''mosShowHead();''' with '''<jdoc:include type="head" />'''
+
# Vervang '''mosShowHead();''' met '''<jdoc:include type="head" />'''
# Replace '''mosMainBody()''' with '''<jdoc:include type="component" />'''
+
# Vervang '''mosMainBody()''' met '''<jdoc:include type="component" />'''
# Replace '''mosLoadModules( $position_name, $style );''' with '''<jdoc:include type="modules" name=$position_name style=$style />'''
+
# Vervang '''mosLoadModules( $position_name, $style );''' met '''<jdoc:include type="modules" name=$position_name style=$style />'''
  
 
====Module Chrome/Style Conversion Chart====
 
====Module Chrome/Style Conversion Chart====

Revision as of 22:23, 17 November 2008

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Updaten van je index.php file

  1. Vervang _VALID_MOS met _JEXEC
  2. Vervang $mosConfig_absolute_path met $this->baseUrl
  3. Vervang $mosConfig_live_site met $mainframe->getCfg( 'live_site' )
  4. Vervang fixed strings met translatable strings. Bijvoorbeeld, replace echo 'Hello' with echo JText::_( 'Hello' )
  5. Replace calls to mosGetParam with calls to JRequest::getVar. Bijvoorbeeld, replace $id = mosGetParam( $_REQUEST, 'id', 0 ); with $id = JRequest::getVar( 'id', 0 );
  6. Vervang mosShowHead(); met <jdoc:include type="head" />
  7. Vervang mosMainBody() met <jdoc:include type="component" />
  8. Vervang mosLoadModules( $position_name, $style ); met <jdoc:include type="modules" name=$position_name style=$style />

Module Chrome/Style Conversion Chart

Joomla! 1.0 Joomla! 1.5
-3 rounded
-2 xhtml
-1 raw
0 or empty table