What is PHQL?
PHQL (Phalcon Query Language) allows user to implement query language similar to SQL query language. PHQL is implemented as a parser which connects to RDBMS.
Explain routing in Phalcon.
Routing managed by its Router component. Router components allow us to define routes that are mapped to controllers or handlers that receives the request from the application.
Enlist the features of Phalcon.
- Low overhead
- MVC & HMVC Pattern
- Dependency Injection
- Support for Rest
- Autoloader
- Router
Explain ODM in Phalcon.
ODM stands for Object Document Mapper. It offers a CRUD functionality, events and validations among other services in Phalcon.
Enlist the features of PHQL.
- It secures the code using bound parameters.
- It prevents injection by executing one SQL statement per call.
- It ignores all comments which mostly used in SQL injections.
- It only allows data manipulation statement to execute.
What is Session?
Sessions are server-side information storage which helps in user interaction with the website or web application. Each session is consists of unique session ID, which is passed to the web server whenever the browser makes an HTTP request.
What is loader?
Loader is a class found under PhalconLoader directory. 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.
What is Phalcon models?
Model consists of information or data of the application. It manipulates the data by managing the rules.
What is CSRF?
CSRF stands for Cross Site Request Forgery. CSRF is created to prevent the form values from being sent outside our application. It generates a random nonce (token) in each form.
What is lazy initialization?
In Loader if a class is added according to its need in program, performance is increased as only specific file is included. This technique is known as lazy initialization.