Skip to content

CodeIgniter 4 with smarty 4 template engine

Notifications You must be signed in to change notification settings

ampmonteiro/ci4-with-smarty4-template-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeIgniter 4 with Smarty 4 template engine

About the project?

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

Original improved.

What was added:

  • take advantage of template engine like Smarty php

What was used

  • php: 8.1
  • mysql: 8
  • Docker
  • CodeIgniter: 4.3.6
  • Smarty php: 4.3 -> more about it

side by side template code (Smarty 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;