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

Helix::Core::Registry - global data storage for Helix Framework.

SYNOPSIS

Somewhere in application controllers:

    my $r = Helix::Core::Registry->get_instance;
    $r->{"cgi"}->send_header;

    my $tpl = $r->{"driver"}->object(DT_TEMPLATE);
    $tpl->parse("index.tpl");
    $tpl->render;

DESCRIPTION

The Helix::Core::Registry class creates a global data storage hash for the whole Helix Framework application. It is instantiated and filled in during applicaton initialization and request processing flow. You can use it anywhere in application.

In other modules' documentation examples Helix::Core::Registry is referred as $r variable.

METHODS

new()

Class constructor. Creates global data storage.

get_instance()

Returns registry instance. Class must be instantiated first.

SEE ALSO

Helix, Helix::Application

LICENSE

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

AUTHOR

Anton Belousov, <abel@cpan.org>

COPYRIGHT

Copyright (c) 2009, Atma 7, http://www.atma7.com