yaf_bootstrap_abstract(3) php man page | unix.com

Man Page: yaf_bootstrap_abstract

Operating Environment: php

Section: 3

YAF_BOOTSTRAP_ABSTRACT(3)						 1						 YAF_BOOTSTRAP_ABSTRACT(3)

The Yaf_Bootstrap_Abstract class

INTRODUCTION
Bootstrap is a mechanism used to do some intial config before a Application run. User may define their own Bootstrap class by inheriting Yaf_Bootstrap_Abstract Any method declared in Bootstrap class with leading "_init", will be called by Yaf_Application::bootstrap one by one according to their defined order.
EXAMPLES
Example #1 Bootstrap example <?php /* bootstrap class should be defined under ./application/Bootstrap.php */ class Bootstrap extends Yaf_Bootstrap_Abstract { public function _initConfig(Yaf_Dispatcher $dispatcher) { var_dump(__METHOD__); } public function _initPlugin(Yaf_Dispatcher $dispatcher) { var_dump(__METHOD__); } } $config = array( "application" => array( "directory" => dirname(__FILE__) . "/application/", ), ); $app = new Yaf_Application($config); $app->bootstrap(); ?> The above example will output something similar to: string(22) "Bootstrap::_initConfig" string(22) "Bootstrap::_initPlugin"
CLASS SYNOPSIS
Yaf_Bootstrap_Abstract abstract Yaf_Bootstrap_Abstract Properties Methods PHP Documentation Group YAF_BOOTSTRAP_ABSTRACT(3)
Related Man Pages
phar.setstub(3) - php
iterator(3) - php
yaf_dispatcher(3) - php
yaf_loader(3) - php
jifty::plugin(3pm) - debian
Similar Topics in the Unix Linux Community
Traceroute response
Reformatted Advanced UNIX.COM Search Page (Desktop)
Bootstrap Changes to Advanced Editor and Attachments Form
Developing Applications for UNIX.COM
Moderator Dashboard Phase I: Add Bootstrap Classes (Done)