| 14 | | ?> |
|---|
| 15 | | |
|---|
| 16 | | class <?php echo $this->getGeneratedModuleName() ?>Actions extends sfActions |
|---|
| | 14 | //create template-file for tab-page |
|---|
| | 15 | ob_start(); |
|---|
| | 16 | require('__BasesfExtjsThemePlugin.class.php'); |
|---|
| | 17 | $content = "[?php\n".ob_get_clean()."\n?]"; |
|---|
| | 18 | |
|---|
| | 19 | // replace [?php and ?] |
|---|
| | 20 | $content = $this->replacePhpMarks($content); |
|---|
| | 21 | |
|---|
| | 22 | $retval = "<?php\n". |
|---|
| | 23 | "// auto-generated by ".$this->getGeneratorClass()."\n". |
|---|
| | 24 | "// date: %s\n?>\n%s"; |
|---|
| | 25 | $retval = sprintf($retval, date('Y/m/d H:i:s'), $content); |
|---|
| | 26 | |
|---|
| | 27 | // save template file |
|---|
| | 28 | $template = 'Base'.$this->getGeneratedModuleName().'.class.php'; |
|---|
| | 29 | $this->getGeneratorManager()->getCache()->set($template, $this->getGeneratedModuleName().DIRECTORY_SEPARATOR.'lib', $retval); |
|---|
| | 30 | ?> |
|---|
| | 31 | require_once dirname(__FILE__).'/../lib/<?php echo $template ?>'; |
|---|
| | 32 | class <?php echo $this->getGeneratedModuleName() ?>Actions extends <?php echo 'Base'.$this->getGeneratedModuleName() ?>Actions |
|---|