Welcome to The Cookbook

  • 1.2 Collection
  • 1.1 Collection
  • General
  • Top Contributors
  • todo
  • Login
  • About CakePHP
  • Donate
  • CakePHP
  • API
  • Docs
  • Bakery
  • Live
  • Forge
  • Trac
The Manual»Developing with CakePHP»Configuration»The App Class»Importing Controllers, Models, Components, Behaviors, and Helpers»Loading Models

3.4.4.3.2 Loading Models

  • Edit
  • Comments (0)
  • History

App::import('Model', 'MyModel');

See comments for this section
<< Loading Controllers | Loading Components >>

Table of Contents : The Manual

  • 1 Beginning With CakePHP
  • 2 Basic Principles of CakePHP
  • 3 Developing with CakePHP
    • 3.1 Requirements
    • 3.2 Installation Preparation
    • 3.3 Installation
    • 3.4 Configuration
      • 3.4.1 Database Configuration
      • 3.4.2 Core Configuration
      • 3.4.3 The Configuration Class
      • 3.4.4 The App Class
        • 3.4.4.1 Using App::import()
        • 3.4.4.2 Importing Core Libs
        • 3.4.4.3 Importing Controllers, Models, Components, Behaviors, and Helpers
          • 3.4.4.3.1 Loading Controllers
          • 3.4.4.3.2 Loading Models
          • 3.4.4.3.3 Loading Components
          • 3.4.4.3.4 Loading Behaviors
          • 3.4.4.3.5 Loading Helpers
        • 3.4.4.4 Loading from Plugins
        • 3.4.4.5 Loading Vendor Files
      • 3.4.5 Routes Configuration
      • 3.4.6 Custom Inflections
      • 3.4.7 Bootstrapping CakePHP
    • 3.5 Controllers
    • 3.6 Components
    • 3.7 Models
    • 3.8 Behaviors
    • 3.9 Views
    • 3.10 Helpers
    • 3.11 Scaffolding
    • 3.12 The CakePHP Console
    • 3.13 Plugins
    • 3.14 Global Constants and Functions
  • 4 Common Tasks With CakePHP
  • 5 Core Components
  • 6 Core Behaviors
  • 7 Core Helpers
  • 8 Core Utility Libraries
  • 9 Core Console Applications
  • 10 Example Applications
  • 11 Appendices

Options

  • All in one page
  • Suggest a new section here

Feeds

  • Comments for Loading Models
  • Change history for Loading Models

Also available in: ar · bg · cn · cz · de · en · es · fa · fr · hu · id · it · ja · ko · nl · pl · pt · ro   CakePHP: the PHP Rapid Development Framework Creative Commons License

© Cake Software Foundation, Inc.