------------------------------------ NOTES on Catalyst-Enzyme-0.12 ------------------------------------ ### Diferences from Catalyst-Enzyme-0.11 ### ./lib/Catalyst/Helper/Model/Enzyme/DBIC.pm ./lib/Catalyst/Helper/View/Enzyme/TT/root/base/header_macros.tt ./lib/Catalyst/Helper/View/Enzyme/TT/root/base/login.tt ./lib/Catalyst/Enzyme/CRUD/Model/DBIC.pm ------------------------------------ How to create a new CRUD app. ------------------------------------ IMPORTANT - Remove Catalyst-Enzyme-0.11 and Install Catalyst-Enzyme-0.12 (CONFIRM THIS) Maybe there is an easier way - Create Catalyst App file structure - Make some edits - Edit lib/.pm Add DefaultEnd FormValidator - Edit lib//Controller/Root.pm Replace message line with: $c->res->redirect("/"); - Edit t/01_App.t Reflect change in Root.pm: ok(request("/")->is_redirect, "Redirect ok"); - Create TT View - script/_create.pl view TT Enzyme::TT - Create the Database dbish dbi:SQLite:dbname=.db < .sql - Create the DBIC Model - script/_create.pl model DB Enzyme::DBIC dbi:SQLite:dbname=db/.db - Configure the Model classes ( One for each table ) - lib//Model/DB/.pm - Create the CRUD Controllers ( One for each table ) - script/_create.pl controller Enzyme::CRUD DB:: - Add links between the tables - Edit the root/base/header.tt and add this inside the content div so we can jump between the tables: | | |
- Finished