piler/webui/controller/search/folder.php

28 lines
615 B
PHP
Raw Permalink Normal View History

2012-09-06 15:27:20 +02:00
<?php
class ControllerSearchFolder extends Controller {
protected function index() {
$this->id = "folder";
$this->template = "search/folder.tpl";
$request = Registry::get('request');
$db = Registry::get('db');
$this->load->model('folder/folder');
$this->data['folders'] = $this->model_folder_folder->get_folders_for_user();
2012-09-15 15:30:35 +02:00
$this->data['extra_folders'] = $this->model_folder_folder->get_extra_folders_for_user();
2012-09-06 15:27:20 +02:00
$this->data['folders_by_hier'] = $this->model_folder_folder->get_all_folder_ids_hier($_SESSION['uid']);
2012-09-06 15:27:20 +02:00
$this->render();
}
}
?>