CodeIgniter Forums

Full Version: These settings works in wamp but not in ubuntu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]veledrom[/eluser]
Hi,

In Windows I unziped codeigniter under /www/ciserver folder and it runs fine when I call http://localhost/ciserver

I did same thing in Ubuntu and unzipped codeigniter into /var/www/ciserver folder but when I run http://localhost/ciserver nothing happens. Not even an error msg.

I don't have .htaccess file in CI though.

Thanks in advance

config.php
Code:
$config['base_url'] = 'http://localhost/ciserver/';
$config['index_page'] = 'index.php';

routes.php
Code:
$route['default_controller'] = "mycls";

controller/mycls.php
Code:
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');


class Mycls extends CI_Controller {

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

public function index()
{
  $data['page_title'] = 'Welcome';
  $data['content'] = 'innerfolder/index_view.php';
  
  $this->load->view('innerfolder/template.php', $data);
}
}

/* EoF */

innerfolder/index_view.php
Code:
<?php
echo "Hi";
?>

innerfolder/template.php
Code:
<?php $this->load->view('innerfolder/include/header.php'); ?>

<?php $this->load->view($content); ?>

<?php $this->load->view('innerfolder/include/footer.php'); ?>