The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

CatalystX::Controller::ExtJS::Direct - Role to identify ExtJS::Direct controllers

VERSION

version 2.1.5

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) 2014 by Moritz Onken.

This is free software, licensed under:

The (three-clause) BSD License