addJs('js/october.importexport.js', 'core'); $this->addCss('css/importexport.css', 'core'); } public function import() { } public function importRender() { return $this->importExportMakePartial('container'); } public function importRenderUpload() { return $this->importExportMakePartial('import_upload'); } public function importRenderFields() { return $this->importExportMakePartial('import_fields'); } /** * Controller accessor for making partials within this behavior. * @param string $partial * @param array $params * @return string Partial contents */ public function importExportMakePartial($partial, $params = []) { $contents = $this->controller->makePartial('import_export_'.$partial, $params + $this->vars, false); if (!$contents) { $contents = $this->makePartial($partial, $params); } return $contents; } }