Welcome Guest, Not a member yet? Register   Sign In
page not found
#3

[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);
    }
}

?>


Messages In This Thread
page not found - by El Forum - 10-03-2008, 09:21 PM
page not found - by El Forum - 10-04-2008, 02:56 AM
page not found - by El Forum - 10-06-2008, 12:00 AM
page not found - by El Forum - 10-06-2008, 08:52 PM
page not found - by El Forum - 10-09-2008, 12:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB