PHP Classes

File: manuscript/3a.-Autoloading.md

Recommend this page to a friend!
  Classes of Gjero Krsteski   PIMF   manuscript/3a.-Autoloading.md   Download  
File: manuscript/3a.-Autoloading.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PIMF
Framework for Web application development
Author: By
Last change: Update of manuscript/3a.-Autoloading.md
Date: 7 months ago
Size: 766 bytes
 

Contents

Class file image Download

Auto-loading

Your application's PHP classes auto-loading lives a the autoload.app.php file. All classes in PIMF are statically mapped. It's just a simple array of class to file path maps for ultra-fast file loading. Feel free to change the mappings and directories at autoload.app.php file.

Mappings from class names to file paths:

 static $mappings = array(
      'MyFirstBlog\\Controller\\Blog'  => '/MyFirstBlog/Controller/Blog.php',
      'MyFirstBlog\\DataMapper\\Entry' => '/MyFirstBlog/DataMapper/Entry.php',
      'MyFirstBlog\\Model\\Entry'      => '/MyFirstBlog/Model/Entry.php'
    );

The core's PHP classes auto-loading lives a the autoload.core.php file. Note: this file is auto-generated with PHPAB - please do not edit!!!