[eluser]mo2men[/eluser]
hi
i use this in my controller 'site'
and 2 functions
index
page
Code:
class review extends Controller{
function _remap($method)
{
if(method_exists($this,$method))
{
$this->$method();
}
else
{
$this->index();
}
}
function __construct() {
parent::Controller();
$this->load->model('review_model');
$this->load->library('form_validation');
$this->load->library('pagination');
}
function index($offset='')
{
$url = $this->uri->segment(2);
$data['url'] = $url;
$data['user_id'] = $this->tank_auth->get_user_id();
$data['username'] = $this->tank_auth->get_username();
$query = $this->review_model->exist_review($url);
if($query == FALSE){
echo "no";
}
else{
// my code //
}
}
function page($page,$offset=''){
// my code //
}
}
?>
and this in my routes
Code:
$routes['review/:any'] = "review/index/$1";
problem is when i go to function page
localhost/site/review/page/444
show error
how can i fix it