Upgrading your template index file
From Joomla! Documentation
Revision as of 22:23, 17 November 2008 by Dragmen (talk | contribs) (→Upgrading your index.php file)
Revision as of 22:23, 17 November 2008 by Dragmen (talk | contribs) (→Upgrading your index.php file)
The "J1.5" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Updaten van je index.php file[edit]
- Vervang _VALID_MOS met _JEXEC
- Vervang $mosConfig_absolute_path met $this->baseUrl
- Vervang $mosConfig_live_site met $mainframe->getCfg( 'live_site' )
- Vervang fixed strings met translatable strings. Bijvoorbeeld, replace echo 'Hello' with echo JText::_( 'Hello' )
- Replace calls to mosGetParam with calls to JRequest::getVar. Bijvoorbeeld, replace $id = mosGetParam( $_REQUEST, 'id', 0 ); with $id = JRequest::getVar( 'id', 0 );
- Vervang mosShowHead(); met <jdoc:include type="head" />
- Vervang mosMainBody() met <jdoc:include type="component" />
- Vervang mosLoadModules( $position_name, $style ); met <jdoc:include type="modules" name=$position_name style=$style />
Module Chrome/Style Conversion Chart[edit]
Joomla! 1.0 | Joomla! 1.5 |
---|---|
-3 | rounded |
-2 | xhtml |
-1 | raw |
0 or empty | table |