Post by rsmck » Mon Mar 21, 2011 6:09 am

I'm trying to create a payment module - adapted from another - the index() method works as expected but when I try and use one of my own methods "tds()" (accessed with route=payment/my_module/tds) I cannot get the page to render as expected;

Code: Select all

 $this->template = 'default/template/payment/my_module_tds.tpl';
 $this->response->setOutput($this->render(TRUE), $this->config->get('config_compression'));
Returns JUST the contents of the template file to the browser, without the rest of the theme.

I've tried adding

Code: Select all

$this->children = array( 'common/column_right', 'common/footer', 'common/column_left', 'common/header' );
But the same thing happens ... how do I get a method (other than index) to output a page within the theme of my opencart site?

Newbie

Posts

Joined
Sun Mar 20, 2011 9:01 am
Who is online

Users browsing this forum: No registered users and 7 guests