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

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::setEventsManager

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

Application::setDefaultModule

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

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::handle

abstract public handle () Handles a request

Application::getModules

public getModules () Return the modules registered in the application

Application::getModule

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

Application::getEventsManager

public getEventsManager () Returns the internal event manager

Application::getDefaultModule

public getDefaultModule () Returns the default module name