Category: Phalcon Service

  • Phalcon Logging

    This method found under directory Phalcon\Logger. It provides logging services for application. We can login to different backend using different adapters. It offers transaction logging, configuration options, different formats and filters. Adapters Adapters are used to store the logged messages. A list of supported adapters: Adapters Description Phalcon\Logger\Adapter\File Logs to a plain text file Phalcon\Logger\Adapter\Stream Logs…

  • Phalcon Class Autoloader

    Loader is a class found under Phalcon\Loader directory. This class consists of some pre-defined rules according to rules it loads class automatically. It also handles error such as if a class does not exist but it is called in any part of program then special handler is called for handling. In Loader if a class is added according to…

  • Phalcon Configuration

    It is a component which is used to convert configuration files into PHP. Its directory location is Phalcon\Config. Implementation Example: To convert native array into Phalcon\Config Objects. File Adapters Class Description Phalcon\Config\Adapter\Ini Uses INI files to store settings. Internally the adapter uses the PHP function parse_ini_file. Phalcon\Config\Adapter\Json Uses JSON files to store settings. Phalcon\Config\Adapter\Php Uses PHP multidimensional arrays to…

  • Cache

    Cache is a class found under Phalcon\Cache directory. It helps in accessing frequently used data at much faster rate. Phalcon\Cache is written in C Programming language and reduce overhead. When to implement Cache? Caching process is divided into 2 parts: 1) Frontend: Frontend checks whether a key has expired or not. Also perform additional transformations to the data before storing and…