Graham Ollis > Clustericious > Clustericious::Controller

Download:
Clustericious-0.9940.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.9940   Source   Latest Release: Clustericious-0.9940_02

NAME ^

Clustericious::Controller - Clustericious controller base class

VERSION ^

version 0.9940

SYNOPSIS ^

 use base qw( Clustericious::Controller );

DESCRIPTION ^

Base class for all controllers in Clustericious applications

SUPER CLASS ^

Mojolicious::Controller

METHODS ^

$c->url_for

Clustericious version of this method usually provided by Mojolicious.

redirect_to

Copied from Mojolicious::Controller, but works around a limitation of Apache's mod_proxy (namely: the ProxyPassReverse directive doesn't handle authorization information in the Location header.)

It does this by explicitly using the url_base from the Clustericious config file for the app as the base for the location header.

$c->render_not_found

Clustericious version of this method usually provided by Mojolicious.

$c->render_exception($message)

Clustericious version of this method usually provided by Mojolicious.

$c->render_text

Previous versions of Mojolicious included this method, and it was added here to ease the transition. This method should be considered deprecated and may be removed in the future.

$c->render_json

Previous versions of Mojolicious included this method, and it was added here to ease the transition. This method should be considered deprecated and may be removed in the future.

SEE ALSO ^

Clustericious

AUTHOR ^

original author: Brian Duggan

current maintainer: Graham Ollis <plicease@cpan.org>

contributors:

Curt Tilmes

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by NASA GSFC.

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: