Show
Ignore:
Timestamp:
04/20/06 10:20:30 (6 years ago)
Author:
haas
Message:

DateHelper? docs and tests

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/vendor/trax/templates/scaffolds/generator_templates/controller.php

    r117 r198  
    2020     
    2121    function add() { 
    22         $this-><?php echo $singluar_model_name ?> = new <?php echo $model_class_name ?>($_REQUEST['<?php echo $singluar_model_name ?>']); 
     22      $this-><?php echo $singluar_model_name ?> = new <?php echo $model_class_name ?>(array_key_exists('<?php echo $singluar_model_name ?>',$_REQUEST) ? $_REQUEST['<?php echo $singluar_model_name ?>'] : null ); 
    2323        if($_POST) { 
    2424            if($this-><?php echo $singluar_model_name ?>->save($_POST['<?php echo $singluar_model_name ?>'])) {