質問に対するshadyyxの答えを詳しく説明すると、ここにコードが機能しました...完璧だと言っているのではなく、機能するだけです。
admin\controller\custom\helloworld.php
<?php
class ControllerCustomHelloWorld extends Controller
{
private $error = array();
public function index()
{
$this->load->model('setting/setting');
$this->load->language('custom/helloworld');
$data['breadcrumbs'] = array();
$data['breadcrumbs'][] = array(
'text' => $this->language->get('text_home'),
'href' => $this->url->link('common/dashboard', 'token=' . $this->session->data['token'], 'SSL')
);
$data['breadcrumbs'][] = array(
'text' => $this->language->get('text_module'),
'href' => $this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL')
);
$data['heading_title'] = $this->language->get('heading_title');
$data['header'] = $this->load->controller('common/header');
$data['column_left'] = $this->load->controller('common/column_left');
$data['footer'] = $this->load->controller('common/footer');
$this->response->setOutput($this->load->view('custom/helloworld.tpl', $data));
}
}
?>
admin\language\english\custom\helloworld.php
<?php
// Heading
$_['heading_title'] = 'My First Admin Page...';
// Text
$_['text_module'] = 'Modules';
$_['text_success'] = 'Success: You have modified module account!';
$_['text_content_top'] = 'Content Top';
$_['text_content_bottom'] = 'Content Bottom';
$_['text_column_left'] = 'Column Left';
$_['text_column_right'] = 'Column Right';
// Entry
$_['entry_layout'] = 'Layout:';
$_['entry_position'] = 'Position:';
$_['entry_status'] = 'Status:';
$_['entry_sort_order'] = 'Sort Order:';
// Error
$_['error_permission'] = 'Warning: You do not have permission to modify module account!';
?>
admin\model\custom\helloworld.php
<?php
class ModelCustomHelloWorld extends Model
{
public function HelloWorld()
{
$sql = "SELECT * FROM " . DB_PREFIX . "category_description";
$implode = array();
$query = $this->db->query($sql);
return $query->rows;
}
}
?>
admin\view\template\custom\helloworld.php
<?php echo $header; ?><?php echo $column_left; ?>
<div id='content'>
<h1><?php echo $heading_title; ?></h1>
<?phpecho 'I can also create a custom admin page.!'<br/>; ?>
<?php print_r($my_results);?>
<?php foreach ($breadcrumbs as $breadcrumb) { ?>
<li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
<?php } ?>
</div>
<?php echo $footer; ?>