Upgrading your template index file

Print E-mail

Upgrading your index.php file

  1. Replace _VALID_MOS with _JEXEC
  2. Replace $mosConfig_absolute_path with $this->baseUrl
  3. Replace $mosConfig_live_site with JURI::base()
  4. Replace fixed strings with translatable strings. For example, replace echo 'Hello' with echo JText::_( 'Hello' )
  5. Replace calls to mosGetParam with calls to JRequest::getVar. For example, replace $id = mosGetParam( $_REQUEST, 'id', 0 ); with $id = JRequest::getVar( 'id', 0 );
  6. Replace mosShowHead(); with <jdoc:include type="head" />
  7. Replace mosMainBody() with <jdoc:include type="component" />
  8. Replace mosLoadModules( $position_name, $style ); with <jdoc:include type="modules" name=$position_name style=$style />. (Note: the 1.0 template's PHP syntax may use single or double quotes. Jdoc expressions require double quotes, and won't work with single quotes.)

Module Chrome/Style Conversion Chart

Joomla! 1.0      Joomla! 1.5
         -3          rounded
         -2            xhtml
         -1              raw
     0 or empty             table
Comments (0)add comment

Write comment

security image
Write the displayed characters


busy
 

Subscribe To Our RSS

Stay informed: Please subscribe to our RSS feed to be informed about new Turn Key Web Solution tips, tutorials, special promotions and other goodies.


subscribe for rss feeds

Get Feed Via Email

You can get your feed directly to your email by feedburner. We respect your privacy and will never distribute your email address to anyone.

Contact Us

Joomsnap.com
6 Harbor Way #209
Santa Barbara, CA 93101
Phone: (800)605-4988
Click Here to E-Mail Us