Egg::Engine - It assists in basic operation of Egg.
A series of processing is done until the WEB request is received and contents are output.
It is processing of the first stage that is called from $e->run.
'prepare' method of each plugin is sequentially called.
It is initial processing of dispatch.
'_start' method and '_run' method of dispatch are continuously called. However, if $e->finished is ture, these processing is canceled.
It is processing of the second stage that is called from $e->run. However, if $e->finished is true, all processing here is canceled.
'action' method of the plugin is called.
The template is evaluated and contents for the output are generated. However, if $e->response->body has defined it, processing here has already been canceled.
If $e->response->body is undefined, '_finish' method of dispatch is called. The processing of dispatch are the completion of all by this.
They are the last processing most that is called from $e->run.
If $e->response->content_type is first of all undefined in the processing to here, $e->config->{content_type} is set.
'_finalize' method of each plugin is sequentially called.
If $e->finished is true, all processing here is canceled.
$e->compress( $e->response->body ) is called before contents are output.
And, contents are output to the client.
The dispatch object is generated. An overwrite of the controller of this method and customizing for me are also good.
The plugin is require. However, it is not added to @ISA, and 'setup' method is not called. This merely does require.
Whether Model of [MODEL_NAME] is called in is checked.
Whether VIEW of [VIEW_NAME] is called in is checked.
The Egg::Debug::Log object is returned.
When the error occurs by processing $e->run, it reports on the error on the screen where Egg is yellow.
The message of argument is output to STDERR while operating by debug mode. This any method is replaced with the code not done usually.
Egg::Release, Egg::Model, Egg::View, Egg::Request, Egg::Response, Egg::D::Stand, Egg::Debug::Base,
Masatoshi Mizuno, <mizuno@bomcity.com>
Copyright (C) 2006 Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install Egg::Release, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Release
CPAN shell
perl -MCPAN -e shell install Egg::Release
For more information on module installation, please visit the detailed CPAN module installation guide.