我在密碼器中創建了一個小應用程序。前端運行正常,因爲管理部分未打開。管理員URL在密碼器中無法正常工作
我試圖打開爲yourdomain/admin/index.php/user/
(但它顯示404 not found error
)。
那麼如何查看admin的目錄部分?
這裏是我的管理文件結構和文件內容
D:\wamp\www\CodeIgniter\application\views\admin\catalog\catalog_view.php
<?php if (!defined('BASEPATH')) exit(__('No direct script access allowed')); ?>
<?php $this->load->view('admin/inc/header'); ?>
<h1><?php echo __('Catalog Manager'); ?></h1>
<p>Coming Soon...</p>
<?php $this->load->view('admin/inc/footer'); ?>
D:\wamp\www\CodeIgniter\application\controllers\admin\catalog\catalog.php
<?php
/**
* Admin User Controller
*/
class User extends MY_Controller
{
public function __construct()
{
parent::MY_Controller();
}
function index()
{
$data = '';
//---
$html_string = $this->load->view('admin/catalog/catalog_view', $data, true); //Get view data in place of sending to browser.
Library('process')->view($html_string);
}
}
請提供'config/routes.php' – Kyslik