combine codeigniter and laravel

懵懂的女人 提交于 2019-12-12 03:54:38

问题


I'm using codeigniter framework but I want to use features of laravel framework like below code that I can print a variable without <?php echo $name ?> :

Hello {{ $name }}

How can I do ?


回答1:


Codeigniter is an Php Framework. And Laravel is also php framework too. And this both is not equal with each other. As simple

Codeigniter(<4.0) != Laravel

Take look at Laravel vs. CodeIgniter

Laravel vs. Codeigniter

    Module               Laravel                Codeigniter
----------------------------------------------------------
Layout Control              Yes                         No
ORM                         Yes                         No
Error Stack Trace           Yes                         No
Class Auto Loading          Yes                         Yes
–Database mySQL             Yes                         Yes
–Database SQLite            Yes                         Yes
–Database MSSQL             Yes                         Yes
–Database PostgreSQL        Yes                         Yes
–Database Cubrid            Yes                         Yes
–ODBC drivers               Yes                         No
–Database MariaDB           No                          No
Authentication Library      Yes                         No
External Modules            Yes                         Yes
Form Validation Rules       Yes                         Yes
Internationalization        Yes                         Yes
Database Module             Object-oriented             Hybrid Object-relational
Template language           Blade Template Engine       Blade php Proprietary
Design pattern              Active-Record               Active-Record
                            Model-View-Controller       Model-View-Controller
                            Dependency injection
                            Observer
                            Singleton
                            Event-Driven
                            MTV
                            Factory
                            RESTfull
                            Facade

So some open source library's can use with both of this frameworks but not all(phpMailer, phpExcel..)



来源:https://stackoverflow.com/questions/34809272/combine-codeigniter-and-laravel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!