I create a module and mymodule.module file like this:
function mymodule_menu(){
$items['mymodule/list']=array(
'type'=>MENU_CALLBACK,
'page callback'=>'mymodule_list_view',
);
return $items;
}
function mymodule_list_view(){
theme('list_view');
}
function mymodule_theme($existing, $type, $theme, $path){
return array(
'list_view'=>array(
'template'=>'mymodule_list',
'type'=>'theme_engins',
),
);
}
then I create templates file: mymodule_list.tpl.php
And I create a theme and create templates file: page--mymodule.tpl.php. Now when I access /mymodule/list, it will use page--mymodule.tpl.php to render the page.
My question is: how should I write page--mymodule.tpl.php to display the content in mymodule_list.tpl.php?
$page['content']['system_main']['main']['#markup'], so I think I should process this variable. – solomon_wzs Nov 28 '12 at 1:56