this code in contollers
public function transactionsaction() { $modellayout = new pteb_system_model_layout_backend(); $modellayout->loadlayout(); $block = $modellayout->setcontentblock( 'transactions-block', 'pteb_system_block_cms' ); $block->settemplate('user/transactions/results.phtml'); $modellayout->showlayout(); }
/* content display on page, displays without template*/
$block->settemplate('user/transactions/results.phtml');
/* template content above resides in same folder is, name form.phtml
. replaced results.phtml
form.phtml
in above code displays design not content.
basically form.phtml
contains table structure table heading while results.phtml
contains rows of contents.*/
how tell results.phtml use form.phtml template?
can try go block:
pteb_system_block_cms
and add following settemplate script:
public function __construct() { parent::__construct(); $this->settemplate('abc/abc.phtml'); }
Comments
Post a Comment