PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, March 14, 2022

[FIXED] combine codeigniter and laravel

 March 14, 2022     blade, codeigniter, laravel, php     No comments   

Issue

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 ?


Solution

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..)



Answered By - Abdulla Nilam
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing