Catalyst::Example::InstantCRUD

Catalyst::Example::InstantCRUD is a CRUD scaffolding for Catalyst.
Download

Catalyst::Example::InstantCRUD Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Zbigniew Lukasiak
  • Publisher web site:
  • http://search.cpan.org/~zby/Catalyst-Example-InstantCRUD-v0.0.18/lib/Catalyst/Example/InstantCRUD.pm

Catalyst::Example::InstantCRUD Tags


Catalyst::Example::InstantCRUD Description

Catalyst::Example::InstantCRUD is a CRUD scaffolding for Catalyst. Catalyst::Example::InstantCRUD is a CRUD scaffolding for Catalyst.SYNOPSIS instantcrud.pl -name=My::App -dsn='dbi:Pg:dbname=CE' -user=zby -password='pass'The instantcrud.pl executable creates a skeleton CRUD application in current directory. The parameters are: name of the application and database connection details.The script will create CRUD interface (CReate, Update, Delete) with paging and sort for all tables defined in the accessed database. The Create and Update forms let you manipulate also on relations (even many to many). It includes some basic authentication code.I am waiting for suggestions what else basic functionality would be nice to have in the generated application.When the code is generated you can run the application: $ My-App/script/my_app_server.pl You can connect to your server at http://zby.aster.net.pl:3000To access the CRUD interface to the tables you need to add '/tablename' (in lowercase) to the address: http://localhost:3000/tablename (Note that if the table name has a underscore, that underscore should be deleted in the address so table foo_bar is available at http://localhost:3000/foobar, this is due to some conversions made by the underlying libraries).The generated application will use DBIx::Class for model classes and Template::Toolkit for View.CUSTOMISATION AND EXTENDINGThe first place for customisations are the Template Toolkit templates and the CSS file. The CSS file used by the application is root/static/pagingandsort.css. The templates are generated in directories named after the controllers in the root directory.To customize the forms used for creation and modification of records you can modify the interface_config.dat file generated in the application main directory. For now it's content is a dump of a perl structure. I hope it is enough self explanatory for some simple modifications. The most basic one should be deleting some field, by deleting it's hash from the list, and changing the order of fields.The generated controller is a subclass of Catalyst::Example::Controller::InstantCRUD. You can use the standard OO technique of overriding the documented methods to customize and extend it. Requirements: · Perl


Catalyst::Example::InstantCRUD Related Software