Jesse Luehrs > OX-0.04 > OX::RouteBuilder::ControllerAction

Download:
OX-0.04.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.04   Source   Latest Release: OX-0.14

NAME ^

OX::RouteBuilder::ControllerAction - OX::RouteBuilder which routes to an action method in a controller class

VERSION ^

version 0.04

SYNOPSIS ^

  package MyApp;
  use OX;

  has controller => (
      is  => 'ro',
      isa => 'MyApp::Controller',
  );

  router as {
      route '/' => 'controller.index';
  };

DESCRIPTION ^

This is an OX::RouteBuilder which routes to action methods on a controller class. The action_spec should be a string in the form "$controller.$action", where $controller is the name of a service which provides a controller instance, and $action is the name of a method on that class.

AUTHORS ^

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Infinity Interactive.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: