Skip to content

CodeIgniter 4 with Latte template engine

Notifications You must be signed in to change notification settings

ampmonteiro/ci4-with-latte-template-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeIgniter 4 with Latte template engine

About the project?

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

Original improved.

What was added:

  • Latte template engine in news related views

What was used

  • php: 8.1
  • mysql: 8
  • Docker
  • CodeIgniter: 4.3.1
  • Latte template engine: 3.0.5 -> more about it

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

Ci4 Template engine vs Latte 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 3307:3306 mysql;