PHPackages                             zubdev/ci4smarty - 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. zubdev/ci4smarty

Abandoned → [https://github.com/seunex17/codeigniter4-smarty](/?search=https%3A%2F%2Fgithub.com%2Fseunex17%2Fcodeigniter4-smarty)ArchivedLibrary[Templating &amp; Views](/categories/templating)

zubdev/ci4smarty
================

Separate you Codeigniter4 logic from the presentation using Smarty

v0.1(4y ago)236MITPHPPHP &gt;=7.3

Since Dec 11Pushed 4y ago2 watchersCompare

[ Source](https://github.com/seunex17/ci4-smarty)[ Packagist](https://packagist.org/packages/zubdev/ci4smarty)[ RSS](/packages/zubdev-ci4smarty/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

[![GitHub](https://camo.githubusercontent.com/da2612a1480bb38476a9d87f2f2398af51b2273a1784643b6d8b6a70be05398e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f697273796164756c696261642f6369342d646174617461626c6573)](https://camo.githubusercontent.com/da2612a1480bb38476a9d87f2f2398af51b2273a1784643b6d8b6a70be05398e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f697273796164756c696261642f6369342d646174617461626c6573)[![Hits](https://camo.githubusercontent.com/afdf363d1c02892b58ee6f9a3926f365480246cd51829d479693d612bf67cc7a/68747470733a2f2f686974732e736565796f756661726d2e636f6d2f6170692f636f756e742f696e63722f62616467652e7376673f75726c3d7365756e657831372f6369342d736d61727479)](https://camo.githubusercontent.com/afdf363d1c02892b58ee6f9a3926f365480246cd51829d479693d612bf67cc7a/68747470733a2f2f686974732e736565796f756661726d2e636f6d2f6170692f636f756e742f696e63722f62616467652e7376673f75726c3d7365756e657831372f6369342d736d61727479)

ci4-smarty
==========

[](#ci4-smarty)

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

**NOTE: This library is under early development.**

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 4.x

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

[](#installation)

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

> composer require zubdev/ci4smarty

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

### Manual Installation

[](#manual-installation)

Should you choose not to use Composer to install, you can download this repo, extract and rename this folder to **ci4-smarty**. Then enable it by editing **app/Config/Autoload.php** and adding the **Zubdev\\Ci4Smarty**namespace to the **$psr4** array. For example, if you copied it into **app/Libraries**:

```
    $psr4 = [
        'Config'      => APPPATH . 'Config',
        APP_NAMESPACE => APPPATH,
        'Zubdev\Ci4Smarty' => APPPATH . 'Libraries/Ci4Smarty',
    ];
```

Example:
--------

[](#example)

Here is an example of basic usage:

- PHP:

```
