This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * sfWidgetFormDoctrineHierSelect represents a hierarchical selects with jquery help. | |
| * | |
| * @auther Hiromi Hishida<info@77-web.com> | |
| */ | |
| class sfWidgetFormDoctrineHierSelect extends sfWidgetForm | |
| { | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Product: | |
| columns: | |
| id: | |
| type: serial | |
| primary: true | |
| name: | |
| type: string(255) | |
| notnull: true | |
| price: | |
| type: integer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Product: | |
| columns: | |
| id: | |
| type: serial | |
| primary: true | |
| name: | |
| type: string(255) | |
| notnull: true | |
| price: | |
| type: integer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * This class has been auto-generated by the Doctrine ORM Framework | |
| */ | |
| class Version1 extends Doctrine_Migration_Base | |
| { | |
| public function up() | |
| { | |
| $this->addColumn('product', 'description', 'string', '', array( | |
| )); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Product: | |
| columns: | |
| id: | |
| type: serial | |
| primary: true | |
| name: | |
| type: string(255) | |
| notnull: true | |
| price: | |
| type: integer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * This class has been auto-generated by the Doctrine ORM Framework | |
| */ | |
| class Version2 extends Doctrine_Migration_Base | |
| { | |
| public function up() | |
| { | |
| $this->addColumn('product', 'memo', 'string', '', array( | |
| )); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * sfWidgetFormInputTel | |
| * | |
| * @auther 77web<info@77-web.com> | |
| */ | |
| class sfWidgetFormInputTel extends sfWidgetForm | |
| { | |
| protected $widgets = array(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // modules/foo/actions/actions.class.php | |
| class fooActions extends sfActions | |
| { | |
| public function executeBar(sfWebRequest $request) | |
| { | |
| //何かの計算や条件判定 | |
| $this->showNameInTitle = true; | |
| $this->name = 'my name'; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * sfFormのフォームでtwitter bootstrap用のHTMLを出力するformatterクラス | |
| * | |
| * @auther Hiromi Hishida<info@77-web.com> | |
| */ | |
| class sfWidgetFormSchemaFormatterBootstrap extends sfWidgetFormSchemaFormatter | |
| { | |
| protected $rowFormat = '<fieldset class="%status%"><div class="control-group">%label%<div class="controls">%error%%field%%help%%hidden_fields%</div></div></fieldset>'; | |
| protected $errorRowFormat = '%errors%'; |