<?php
/**
* Directory helper
*
* Created on 2011. 11. 18.
* @author 불의회상 <hoksi2k@hanmail.net>
* @package helper
* @subpackage controllers
* @version 1.0
*/
class Directory_hlp extends CI_Controller {
function __construct()
{
parent::__construct();
// Directory Helper Load
$this->load->helper('directory');
}
function index() {
$data['directory'] = directory_map(BASEPATH, 1);
$this->load->view('directory_hlp_sample', $data);
}
}
<?php $this->load->view('inc/header')?>
<table class="tablesorter" border="0" cellpadding="0" cellspacing="1">
<thead>
<tr>
<th style="text-align:center" colspan="2">Directory Helper</th>
</tr>
</thead>
<thead>
<tr>
<th style="text-align:center" width="20%">구분</th>
<th width="80%">결과</th>
</tr>
</thead>
<tr>
<td>directory_map(BASEPATH, 1)</td>
<td><xmp><?php print_r($directory)?></xmp></td>
</tr>
</table>
<?php $this->load->view('inc/footer')?>
© Copyright by hoksi(Page rendered in 0.0123 seconds)