コード例 #1
0
ファイル: resource.php プロジェクト: vimofthevine/kohana-cms
 /**
  * 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();
 }
コード例 #2
0
ファイル: resource.php プロジェクト: nagius/kohana-cms
 /**
  * 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();
 }