Catalyst::Utils - The Catalyst Utils |
appprefix($class)
home($class)
request($uri)
Catalyst::Utils - The Catalyst Utils
See Catalyst.
appprefix($class)
MyApp::Foo becomes myapp_foo
MyApp::Controller::Foo::Bar becomes MyApp My::App::Controller::Foo::Bar becomes My::App
MyApp::Controller::Foo::Bar becomes MyApp::Controller My::App::Controller::Foo::Bar becomes My::App::Controller
MyApp::Controller::Foo::Bar becomes Controller::Foo::Bar
Returns the environment name for class.
MyApp becomes MYAPP My::App becomes MY_APP
Returns the uri prefix for a class. If case is false the prefix is converted to lowercase.
My::App::Controller::Foo::Bar becomes foo/bar
Returns a tempdir for a class. If create is true it will try to create the path.
My::App becomes /tmp/my/app My::App::C::Foo::Bar becomes /tmp/my/app/c/foo/bar
home($class)
Returns home directory for given class.
Returns a prefixed action.
MyApp::Controller::Foo::Bar, yada becomes foo/bar/yada
request($uri)
Returns an the HTTP::Request manpage object for a uri.
Loads the class unless it already has been loaded.
If $opts{ignore_loaded} is true always tries the require whether the package already exists or not. Only pass this if you're either (a) sure you know the file exists on disk or (b) have code to catch the file not found exception that will result if it doesn't.
Base code to recursively merge two hashes together with right-hand precedence.
Checks for and returns an environment value. For instance, if $key is 'home', then this method will check for and return the first value it finds, looking at $ENV{MYAPP_HOME} and $ENV{CATALYST_HOME}.
Sebastian Riedel, sri@cpan.org
Yuval Kogman, nothingmuch@woobling.org
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
Catalyst::Utils - The Catalyst Utils |