[eluser]Aken[/eluser]
CI's default URL scheme goes like this: example.com/index.php/class/function/ID
Basically you're telling CI to call a function that doesn't exist.
I'd go into your Routes config file, and set a route for that URL to go back to your InvEdit class' default function.
Code:
$route['invedit/:num'] = "invedit";
And then use the URI Segment function to pull the SKU you'd like to edit.
Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class InvEdit extends Controller {
public function _construct()
{
parent::Controller();
}
function index()
{
$sku = $this->uri->segment(2);
$this->load->model('invModel');
$data['query'] = $this->invModel->getInventoryWhere($sku);
$this->load->view('invEditView', $data);
}
}
?>