Application::registerModules

public registerModules (array $modules, [mixed $merge]) Register an array of modules present in the application $this->registerModules( [ 'frontend' => [ 'className' => 'Multiple\Frontend\Module', 'path' => '../apps/frontend/Module.php' ], 'backend' => [ 'className' => 'Multiple\Backend\Module', 'path' => '../apps/backend/Module.php'

Application::setDefaultModule

public setDefaultModule (mixed $defaultModule) Sets the module name to be used if the router doesn’t return a valid module

Application\Exception

extends class Phalcon\Exception implements Throwable Source on GitHub Methods final private Exception __clone () inherited from Exception Clone the exception public __construct ([string $message], [int $code], [Exception $previous]) inherited from Exception Exception constructor public __wakeup () inherited from Exception ... final public string getMessage () inherited from Exception Gets the Exception message final public int getCode () inherited from Exception Gets the Exception code fin

Application::handle

abstract public handle () Handles a request

Application::setEventsManager

public setEventsManager (Phalcon\Events\ManagerInterface $eventsManager) Sets the events manager

Assets Management

Phalcon\Assets is a component that allows you to manage static resources such as CSS stylesheets or JavaScript libraries in a web application. Phalcon\Assets\Manager is available in the services container, so you can add resources from any part of the application where the container is available. Adding Resources Assets supports two built-in resources: CSS and JavaScripts. You can create other resources if you need. The assets manager internally stores two default collections of resources - one

Annotations\Reflection::__set_state

public static array data __set_state (mixed $data) Restores the state of a Phalcon\Annotations\Reflection variable export

Application::getDefaultModule

public getDefaultModule () Returns the default module name

Application::getModule

public getModule (mixed $name) Gets the module definition registered in the application via module name

Apache Installation Notes

Apache is a popular and well known web server available on many platforms. Configuring Apache for Phalcon The following are potential configurations you can use to setup Apache with Phalcon. These notes are primarily focused on the configuration of the mod_rewrite module allowing to use friendly URLs and the router component. Commonly an application has the following structure: test/ app/ controllers/ models/ views/ public/ css/ img/ js/ index.php Directory unde