Moritz Onken > CatalystX-ExtJS-Direct-2.1.5 > CatalystX::Controller::ExtJS::Direct

Download:
CatalystX-ExtJS-Direct-2.1.5.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  2
Open  0
View/Report Bugs
Module Version: v2.1.5   Source  

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
syntax highlighting: