Convert Joomla Template into CakePHP Layout

July 25, 2007 by hejian

Copy Template Files
1. Copy Joomla Template’s css/* file to your CakePHP’s webroot/css directory.
2. Copy Joomla Template’s images directory to your CakePHP’s webroot directory
3. Copy Joomla Template’s index.php file to your CakePHP’s views/layout/default.ctp

Modify the default.ctp to meet CakePHP’s requirements
1. Replace:
<?php mosShowHead(); ?>
With:
<title><?php echo $title_for_layout;?></title>
2. Replace $mosConfig_live_site with $this->webroot
3. Replace mosLoadModules with $this->renderElement
4. Replace:
mosMainBody();
With:
echo $content_for_layout;

Leave a Reply

You must be logged in to post a comment.

Wordpress template made by HeJian