Changes between Version 2 and Version 3 of Training/Section07

Show
Ignore:
Timestamp:
12/29/09 21:41:01 (16 years ago)
Author:
cfgrok (IP: 64.30.223.5)
Comment:

Tweaks to training formatting

Legend:

Unmodified
Added
Removed
Modified
  • Training/Section07

    v2 v3  
    99 1. First, let's visit a fictitious Event Handler: 
    1010 
    11 [http://localhost/PlantOMatic?event=Plant.Search http://localhost/PlantOMatic?event=Plant.Search] 
     11 [http://localhost/PlantOMatic?event=Plant.Search http://localhost/PlantOMatic?event=Plant.Search] 
    1212 
    13 ''We'll get an error telling us no event named "Plant.Search" is defined.'' 
     13 ''We'll get an error telling us no event named "Plant.Search" is defined.'' 
    1414 
    1515 2. Next, open /PlantOMatic/config/ColdSpring.xml and find the definition for modelglue.modelGlueConfiguration. Then Locate the setting for generationEnabled and change it from: 
     
    2121}}} 
    2222 
    23     To: 
     23 To: 
    2424 
    2525{{{ 
     
    3030 
    3131 
    32 ''Now, each time you request an undefined Model-Glue Event Handler, Model-Glue will generate Model-Glue XML definitions, Controller bodies and methods and views. This is a powerful feature and should only be enabled when you wish to generate new code. Model-Glue does not distinguish typos from intent, so be careful!'' 
     32 ''Now, each time you request an undefined Model-Glue Event Handler, Model-Glue will generate Model-Glue XML definitions, Controller bodies and methods and views. This is a powerful feature and should only be enabled when you wish to generate new code. Model-Glue does not distinguish typos from intent, so be careful!'' 
    3333 
    3434 3. Simply refresh the page, and Model-Glue will generate a bunch of free code to support our new Plant.Search functionality 
     
    4141== New Files: == 
    4242 
    43 /PlantOMatic/views/Plant/Search.cfm 
     43 * /PlantOMatic/views/Plant/Search.cfm 
    4444 
    4545== Changed Files: == 
    4646 
    47 /PlantOMatic/config/ModelGlue.xml 
    48  * New Event Handler: Plant.Search 
     47 * /PlantOMatic/config/ModelGlue.xml 
     48   * New Event Handler: Plant.Search 
    4949 
    50 /PlantOMatic/controller/PlantController.cfc 
    51  * New Method: Search() 
    52  * '' '''Note:''' if !PlantController did not already exist, Model-Glue would have created it for us '' 
    53  
     50 * /PlantOMatic/controller/PlantController.cfc 
     51   * New Method: Search() 
     52   * '' '''Note:''' if !PlantController did not already exist, Model-Glue would have created it for us '' 
    5453 
    5554== Event Generation Clean Up == 
    5655 
    5756 1. Delete These Files 
     57    * /PlantOMatic/views/Plant (the whole directory) 
    5858 
    59 /PlantOMatic/views/Plant (the whole directory) 
    60  
    61  2. '''Update The Model-Glue XML Event Handler for Plant.Search''' 
     59 2. Update The Model-Glue XML Event Handler for Plant.Search 
    6260 
    6361{{{