It looks like you're new here. If you want to get involved, click one of these buttons!
<?php
class Filename extends CI_Controller {
public $vars = array();
function __construct()
{
parent::__construct();
}
function index()
{
$seg1 = $this->uri->segment(1);
$seg2 = $this->uri->segment(2);
$seg3 = $this->uri->segment(3);
if (!empty($seg3))
{
if (!empty($seg2))
{
// do stuff here
$vars['varname1'];
$vars['varname2'];
// have tried this both ways but still unable to pull vars into the view
//$this->fuel->pages->render("filename", $vars);
$this->fuel->pages->render("filename/$seg2/$seg3", $vars);
}
}
}
}
<?php
class Filename extends CI_Controller {
public $vars = array();
function __construct()
{
parent::__construct();
}
function index()
{
// do stuff here
$vars['varname1'];
$vars['varname2'];
$this->fuel->pages->render("filename", $vars);
}
}
Comments
http://ellislab.com/codeigniter/user-guide/general/controllers.html#remapping