Showing posts with label URL. Show all posts
Showing posts with label URL. Show all posts

Monday, 8 September 2014

Magento base url without index.php

Use below code to get Base url without index.php

<?php echo Mage::getStoreConfig('web/unsecure/base_url');?> 

Friday, 13 June 2014

Url Management Routing in CodeIgniter

$route[ 'default_controller' ]  = 'main';
$route[ '404_override' ]        = 'error404';
 
require_once( BASEPATH . 'database/DB' . EXT );
$db = & DB();
$query = $db->get('company_profile');
$result = $query->result();
if (!empty($result))
{
    foreach ($result as $row)
    {
        $route[$row->slug] = "profile";
    }
}