PHPackages                             seunex17/codeigniter4-smarty - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. seunex17/codeigniter4-smarty

ActiveLibrary[Templating &amp; Views](/categories/templating)

seunex17/codeigniter4-smarty
============================

A smarty template engine for Codeigniter4

v1.3.0(2y ago)388↓100%MITPHPPHP ^7.4 || ^8.0

Since Apr 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/seunex17/codeigniter4-smarty)[ Packagist](https://packagist.org/packages/seunex17/codeigniter4-smarty)[ Fund](https://flutterwave.com/pay/zubdevo6wc)[ Fund](https://www.buymeacoffee.com/seunex17)[ RSS](/packages/seunex17-codeigniter4-smarty/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (6)Used By (0)

Smarty template engine for Codeigniter 4.
=========================================

[](#smarty-template-engine-for-codeigniter-4)

[![GitHub](https://camo.githubusercontent.com/d3eb2d051033fb3e63cd003dab6a5f8d835a286f5c6dc116c655b348f28597fc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7365756e657831372f636f646569676e69746572342d736d61727479)](https://camo.githubusercontent.com/d3eb2d051033fb3e63cd003dab6a5f8d835a286f5c6dc116c655b348f28597fc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7365756e657831372f636f646569676e69746572342d736d61727479)[![Hits](https://camo.githubusercontent.com/d16ca59455cff0f83b70d4175e88f186c3423e0df340f9ce888ecdde07149bae/68747470733a2f2f686974732e736565796f756661726d2e636f6d2f6170692f636f756e742f696e63722f62616467652e7376673f75726c3d7365756e657831372f636f646569676e69746572342d736d61727479)](https://camo.githubusercontent.com/d16ca59455cff0f83b70d4175e88f186c3423e0df340f9ce888ecdde07149bae/68747470733a2f2f686974732e736565796f756661726d2e636f6d2f6170692f636f756e742f696e63722f62616467652e7376673f75726c3d7365756e657831372f636f646569676e69746572342d736d61727479)[![Packagist Downloads](https://camo.githubusercontent.com/06994b6ae17c071f54b91c67207870d374cf4a59a75c909087eb17d1a23f665f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7365756e657831372f636f646569676e69746572342d736d61727479)](https://camo.githubusercontent.com/06994b6ae17c071f54b91c67207870d374cf4a59a75c909087eb17d1a23f665f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7365756e657831372f636f646569676e69746572342d736d61727479)[![Packagist PHP Version Support](https://camo.githubusercontent.com/ff1783a699d991260d46b5a4972c0258ad1604a6b9b8f8365a1aa4120e407e8c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7365756e657831372f636f646569676e69746572342d736d61727479)](https://camo.githubusercontent.com/ff1783a699d991260d46b5a4972c0258ad1604a6b9b8f8365a1aa4120e407e8c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7365756e657831372f636f646569676e69746572342d736d61727479)[![GitHub stars](https://camo.githubusercontent.com/d6d732d123455c12602907b613048728076f4c80f0ee1c589398b04cbd41fba3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7365756e657831372f636f646569676e69746572342d736d61727479)](https://camo.githubusercontent.com/d6d732d123455c12602907b613048728076f4c80f0ee1c589398b04cbd41fba3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7365756e657831372f636f646569676e69746572342d736d61727479)

Easily implement the Smarty templating engine in your CodeIgniter 4 project.

Description
-----------

[](#description)

Separate the application logic from your presentation layer in CodeIgniter 4 using this clean and semantic pre-built Smarty template.

Requirements
------------

[](#requirements)

- Codeigniter 4.x
- Smarty 5.x

Installation
------------

[](#installation)

Installation is best done via Composer, you may use the following command:

```
composer require seunex17/codeigniter4-smarty
```

This will simply add the latest release of **ci4-smarty** as a module to your project.

Example:
--------

[](#example)

By default without any additonal configuration this library will look into Views/templates/default for you template files.

Here is an example of basic usage:

- PHP:

```
