public function getEdit($themeId) { AssetBuilder::add('cms-main', ['/ace/ace.js']); $theme = Theme::find($themeId); $tvbp = base_path('resources/views/themes/' . $theme->theme); $tcssbp = base_path('public/themes/' . $theme->theme . '/css'); $ret = Theme::getViewFolderTree($tvbp); $filetree = View::make('coaster::partials.themes.filetree', ['directory' => $ret, 'theme' => $theme]); $css_filetree_data = Theme::getViewFolderTree($tcssbp); $css_filetree = View::make('coaster::partials.themes.filetree', ['directory' => $css_filetree_data, 'theme' => $theme]); $this->layoutData['content'] = View::make('coaster::pages.themes.edit', ['theme' => $theme, 'filetree' => $filetree, 'css_filetree' => $css_filetree]); }