| 제목 | 파일추가 페이지 접근 질문 | ||
|---|---|---|---|
| 카테고리 | CIBOARD | ||
| 글쓴이 | 보라색맛났어 | 작성시각 | 2020/10/20 14:07:03 |
|
|
|||
<?php defined('BATHPATH') OR exit('No direct script access allowed');
class Inquiry extends CB_Controller
{
public $pagedir = 'info/nquiry';
protected $models = array('Config');
protected $modelname = 'Config_model';
protected $helpers = array('form','array');
function __construct()
{
parent::__construct();
}
public function index()
{
$eventname = 'event_admin_loan_inquiry_index';
$this->load->event($eventname);
if(! $this->db->table_exists('inquiry_post')) {
redirect(admin_url('info/inquiry/install'));
}
$view = array();
$view['view'] = array();
$view['view']['event']['before'] = Events::trigger('before', $eventname);
$this->load->library('form_validation');
// 이벤트가 존재하면 실행합니다
$view['view']['event']['before_layout'] = Events::trigger('before_layout', $eventname);
/**
* 어드민 레이아웃을 정의합니다
*/
$layoutconfig = array('layout' => 'layout', 'skin' => 'index');
$view['layout'] = $this->managelayout->admin($layoutconfig, $this->cbconfig->get_device_view_type());
$this->data = $view;
$this->layout = element('layout_skin_file', element('layout', $view));
$this->view = element('view_skin_file', element('layout', $view));
}
}
페이지를 새로 만들고 싶어서 파일을 추가 했습니다 그리고 상단에 defined('BATHPATH') OR exit('No direct script access allowed');를 넣었는데 url로 접근 했는데도 막아버립니다 (ex - http://localhost/admin/info/inquiry) 상단 내용을 주석 걸면 접근이 되구요 원인이 궁금합니다 ㅠ |
|||
| 다음글 | 버튼 클릭 시 하나의 페이지에서 다른 테이블 출력 (2) | ||
| 이전글 | ci4 모듈 방식 많이 쓰시나요? (4) | ||
|
변종원(웅파)
/
2020/10/20 14:10:10 /
추천
1
|