public function actionFolders() { echo $this->recursiveFolders(Yii::app()->params['imagePath'] . 'data/'); }