NAME
CatalystX::Controller::ExtJS::Direct - Enable Ext.Direct in Catalyst controllers
VERSION
version 1.122000
SYNOPSIS
package MyApp::Controller::Calculator;
use Moose;
BEGIN { extends 'Catalyst::Controller' };
with 'CatalystX::Controller::ExtJS::Direct';
sub sum : Local : Direct {
my ($self, $c) = @_;
$c->res->body( $c->req->param('a') + $c->req->param('b') );
}
1;
DESCRIPTION
Apply this role to any Catalyst controller to enable Ext.Direct actions.
ATTRIBUTES
is_direct
This attribute is for duck typing only and is always 1
.
AUTHOR
Moritz Onken <onken@netcubed.de>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2010 by Moritz Onken.
This is free software, licensed under:
The (three-clause) BSD License