Catalyst::Helper::View::PHP - Helper for PHP Views


Catalyst-View-PHP documentation Contained in the Catalyst-View-PHP distribution.

Index


Code Index:

NAME

Top

Catalyst::Helper::View::PHP - Helper for PHP Views

SYNOPSIS

Top

    script/create.pl view PHP PHP

DESCRIPTION

Top

Helper for PHP Views.

METHODS

mk_compclass

SEE ALSO

Top

Catalyst::Manual, Catalyst::Test, Catalyst::Request, Catalyst::Response, Catalyst::Helper

AUTHOR

Top

Rusty Conover, rconover@infogears.com

LICENSE

Top

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.

NAME

Top

[% class %] - PHP View Component

SYNOPSIS

Top

See [% app %]

DESCRIPTION

Top

PHP View Component.

AUTHOR

Top

[% author %]

LICENSE

Top

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.


Catalyst-View-PHP documentation Contained in the Catalyst-View-PHP distribution.
package Catalyst::Helper::View::PHP;

use strict;

sub mk_compclass {
    my ( $self, $helper ) = @_;
    my $file = $helper->{file};
    $helper->render_file( 'compclass', $file );
}

1;

__DATA__

__compclass__
package [% class %];

use strict;
use base 'Catalyst::View::PHP';

1;