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

[eluser]Unknown[/eluser]
for example

in my page controller that runs my template i have

<?php

class Page extends Controller {

function Page()
{
parent::Controller();
}

function index()
{
$this->template->write_view('content', 'main/main');
$this->template->write_view('sidebar', 'cart/cart');
$this->template->write_view('sidebar', 'cart/products');
$this->template->render();
}

}

?>


its the 'cart/products' that pull the var from the "cart" controller.

its being pushed elsewhere (to index) and not to my page (template) controller

Where do i need to push out this var to be used in this template??


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