PHP on T R A X
Rapid Application Development Made Easy

Changeset 122 for trunk/trax

Show
Ignore:
Timestamp:
01/18/06 20:09:05 (3 years ago)
Author:
john
Message:

fixed bug in scaffolding generator

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/trax/vendor/trax/trax_generator.php

    r117 r122  
    259259        ob_end_clean();        
    260260        if(!file_exists($view_file)) { 
    261             if(!file_put_contents($view_file, $index_contents)) { 
     261            if(!file_put_contents($view_file, $add_contents)) { 
    262262                echo "error creating view file: $view_file\n"; 
    263263            } else { 
     
    275275        ob_end_clean();  
    276276        if(!file_exists($view_file)) { 
    277             if(!file_put_contents($view_file, $index_contents)) { 
     277            if(!file_put_contents($view_file, $edit_contents)) { 
    278278                echo "error creating view file: $view_file\n"; 
    279279            } else { 
     
    291291        ob_end_clean(); 
    292292        if(!file_exists($view_file)) { 
    293             if(!file_put_contents($view_file, $index_contents)) { 
     293            if(!file_put_contents($view_file, $show_contents)) { 
    294294                echo "error creating view file: $view_file\n"; 
    295295            } else { 
     
    307307        ob_end_clean();   
    308308        if(!file_exists($view_file)) { 
    309             if(!file_put_contents($view_file, $index_contents)) { 
     309            if(!file_put_contents($view_file, $_form_contents)) { 
    310310                echo "error creating view file: $view_file\n"; 
    311311            } else { 
     
    323323        ob_end_clean();   
    324324        if(!file_exists($layout_file)) { 
    325             if(!file_put_contents($layout_file, $index_contents)) { 
    326                 echo "error creating layout file: $view_file\n"; 
    327             } else { 
    328                 echo "created $view_file\n"; 
     325            if(!file_put_contents($layout_file, $layout_contents)) { 
     326                echo "error creating layout file: $layout_file\n"; 
     327            } else { 
     328                echo "created $layout_file\n"; 
    329329            } 
    330330        } else {