โค้ด: เลือกทั้งหมด
<?php
namespace mindphp\sample1\controller;
class main
{
public function __construct(\phpbb\config\config $config, \phpbb\template\template $template, \phpbb\user $user, \phpbb\controller\helper $helper, $root_path, $php_ext)
{
$this->config = $config;
$this->template = $template;
$this->user = $user;
$this->helper = $helper;
$this->root_path = $root_path;
$this->php_ext = $php_ext;
}
public function base($page = 1)
{
// print_r($this->helper);
$this->template->assign_block_vars('navlinks', array(
'FORUM_NAME' => $page_title,
'U_VIEW_FORUM' => $this->helper->route('mindphp_sample1_main', array('page' => $page)),
// $this->helper->route('sample1_controller', array('name' => 'mindphp')
));
return $this->helper->render('sample1_body.html');
}
}
?>