Welcome Guest, Not a member yet? Register   Sign In
base_url() doesn't show, weird @[email protected]
#1

[eluser]solid9[/eluser]
I installed a new CodeIgniter into my site.

I already configured the config.php
Code:
$config['base_url'] = 'http://sample.com/adminpro/';

And below is my controller
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Front extends MY_Controller
{

    function __construct ()
    {
        parent::__construct();

    }

public function index()
{
        echo 'Front controller';
  
    //$this->load->view('welcome_message', $this->data);
    $this->load->view('template/master');
}

public function hello()
{  
  echo '<br>Hello World!<br>';
  echo base_url();
}
}


But when I call http://sample.com/adminpro/front/hello/

It doesn't display the base_url(), any help.

weird.






Messages In This Thread
base_url() doesn't show, weird @[email protected] - by El Forum - 10-18-2012, 11:44 PM
base_url() doesn't show, weird @[email protected] - by El Forum - 10-18-2012, 11:55 PM
base_url() doesn't show, weird @[email protected] - by El Forum - 10-19-2012, 12:16 AM
base_url() doesn't show, weird @[email protected] - by El Forum - 10-19-2012, 01:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB