Skip to content

CodeIgniter 4 with Twig 3 template engine

Notifications You must be signed in to change notification settings

ampmonteiro/ci4-with-twig3-template-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeIgniter 4 with Twig 3 template engine

About the project?

Base on my improved version of ci4 - Build Your First Application:

Original improved.

What was added:

  • Alternative template Engine

What was used

  • php: 8.1
  • mysql: 8
  • Docker
  • CodeIgniter: 4.3.6
  • Twig: 3.6.1 -> more about

side by side template code (Twig vs Vanilla Ci4 template engine)

Twig template engine VS Ci4 Template engine

image of the App

CI4 News-Improved

Editor and Recommend extensions

Setup (using docker without compose)

php image: read the Dockerfile

mysql image in terminal:

docker run --name db_ci \
     -e MYSQL_ROOT_PASSWORD=secret \
     -e MYSQL_DATABASE=ci4 \
     -e MYSQL_USER=dev \
     -e MYSQL_PASSWORD=secret \
     -dp 3306:3306 mysql;