Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

Catalyst::Enzyme::CRUD::View
Catalyst View helper methods for CRUD templates

Catalyst::Enzyme::CRUD::View - Catalyst View helper methods for CRUD templates


NAME

Catalyst::Enzyme::CRUD::View - Catalyst View helper methods for CRUD templates


SYNOPSIS


DESCRIPTION

This is a mix-in for any (TT) View using the Enzyme CRUD.

METHODS

element_req($c, $action_name, $column, $type)

Return new HTML::Element for $column.

If the current action is $action_name, fill in data from the request.

If there is no $column field in the model class, return a HTML <INPUT type=``$type''> field with that name. Type = ``textfield'' | ``textarea'' | ``select''


CATALYST METHODS

These methods are injected into the Catalyst class, available to call on the $c object.

$c->this_request_except(%new_params)

Return uri which is identical to the current request, except overwritten with the new parameters in %new_params.

$c->uri_for_controller($action, @params)

Return a URI that points to the $action in this controller, no matter what the current request is (it could be to an action in another Controller which forwarded to this Controller (by first forwarding to this controller's set_crud_controller).

The @params are added to the URI the same way as in uri_for.


AUTHOR

Johan Lindstrom <johanl ÄT cpan.org>


LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy