示例#1
0
 public function index()
 {
     $this->load->view("template/header");
     $files = new DefaultEditorImpl();
     $data['file_array'] = $files->GetFiles(project_location());
     $this->load->view("editor/home", $data);
     $this->load->view("template/footer");
 }
示例#2
0
 public function index()
 {
     $this->load->view("template/header");
     $data['location'] = project_location();
     if (is_writeable(project_location())) {
         $data['writable'] = '<span class="check" id="writable">Writable</span>';
     } else {
         $data['writable'] = '<span class="check" id="notwritable">Not writable</span>';
     }
     $this->load->view("home/home", $data);
     $this->load->view("template/footer");
 }