Alternative use in the Phalcon framework

Source: Internet
Author: User
Tags php framework

Unlike the traditional PHP framework, if the framework is to be used by another framework, it can only be used through RPC or file introduction. Phalcon can be used directly in other frameworks. This is because Phalcon exists in an extended form. It is directly loaded to the memory when the server is loaded, and can be used like MySQL. Nice!

The following is an example:

$ Url =New\ Phalcon \ MVC \ URL ();


$ URL-> setbaseuri ('/Ci /');

Echo$ URL-> get ('abcd/adasdf /');


This code can use every component in Phalcon in any framework to use this framework. The design is really good.


This blog post has only one purpose to remind you that Phalcon is extremely free and easy to use. You can use Phalcon to expand other frameworks to make up for the shortcomings of other frameworks (such as ci frameworks ).

Alternative use in the Phalcon framework

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.