Welcome Guest, Not a member yet? Register   Sign In
NOOB, using controllers in this template
#1

[eluser]Unknown[/eluser]
Ok i have the library setup according to instructions and it is working.

there is a little quirk

i have a shopping cart controller.
The view file that displays the products uses a variable that has been passed from this cart controller via

$data['products'] = $this->cart_model->retrieve_products(); // Retrieve an array with all products
$this->load->view('index', $data); // Display the page

so it send the var to index.php in the view folder

this is why im getting the error "undefined var" and "invalid arg supplied to foreach"

so in this context how do i use the library or the cart controller to pass the var to the right place

maybe this is so obvious that im over thinking it due to this hamster wheel im on


Messages In This Thread
NOOB, using controllers in this template - by El Forum - 12-20-2012, 01:52 PM
NOOB, using controllers in this template - by El Forum - 12-20-2012, 01:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB