Beispiel #1
0
 /**
  * Show contents of folder
  *
  * @param   string  folder path
  */
 private function dir($dir)
 {
     Kohana::$log->add(Kohana::DEBUG, 'Executing Controller_Admin_Asset::dir');
     $this->template->content = View::factory('cms/files/directory_contents')->bind('folder', $folder);
     $folder = new Model_Resource_Folder($dir);
     $folder->read_contents();
 }
Beispiel #2
0
 /**
  * Show contents of folder
  *
  * @param   string  folder path
  */
 private function dir($dir)
 {
     Kohana::$log->add(Kohana::DEBUG, 'Executing Controller_Admin_Asset::dir');
     $this->template->content = View::factory('cms/files/directory_contents');
     // $folder is binded in global mode to be readable from 'content' and 'menu'
     $this->template->bind_global('folder', $folder);
     $folder = new Model_Resource_Folder($dir);
     $folder->read_contents();
 }