Include – Require – call – cakephp module / file

This is the flow when I call action in cakephp, and it use 1 table.

With Table
app\webroot\index.php – New Dispatcher -> dispatch(url)
–cake\bootstrap.php
—-cake\basics.php
—-app\config\core.php
—-cake\config\paths.php
—-cake\libs\object.php
—-cake\libs\session.php
—-cake\libs\security.php
—-cake\libs\inflector.php
—-cake\libs\configure.php
——app\config\bootstrap.php
—-cake\dispatcher.php
——cake\libs\router.php
——–cake\libs\overloadable.php
———-cake\libs\overloadable_php4.php
——cake\libs\controller\controller.php
——–cake\libs\controller\component.php
——–cake\libs\view\view.php
———-cake\libs\view\helper.php
———-cake\libs\class_registry.php
——app\config\routes.php – parseParams() – dispatch()
——cake\app_controller.php – loadController() – dispatch()
——app\controllers\pages_controller.php – loadController() – dispatch()
——app\config\inflections.php – __initPluralRules() – pluralize() – inflector() – dispatch()
——cake\libs\controller\components\session.php – … – dispatch()
——cake\libs\model\model.php – loadmodel() – loadPluginModel() – dispatch()
——–cake\libs\validators.php
——–cake\libs\model\behavior.php
——–cake\libs\model\connection_manager.php
———-cake\libs\model\datasources\datasource.php
———-app\config\database.php – config() -> basics.php
——–cake\libs\set.php
——cake\app_model.php – loadmodel() – $controller->constructClasses() – dispatch()
——app\models\category.php – loadmodel() – $controller->constructClasses() – dispatch()
——–cake\libs\model\datasources\dbo_source.php – setSource() – __construct() -> model.php
——–cake\libs\model\datasources\dbo\dbo_mysql.php – setSource() – __construct() -> model.php
——cake\app_helper.php
——cake\libs\view\helpers\html.php
——cake\libs\view\helpers\session.php
——app\views\pages\display.thtml

–dispatch()
—-$controller->_initcomponents()
—-$controller->constructClasses()

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: