Skip to content

iarkaroy/Zaq-Codeigniter-Template-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zaq: Codeigniter Template Parser Engine (Not maintained)

Zaq is a PHP based template parser engine developed to work with Codeigniter. This library has been developed for developers to integrate php codes in views easily. Using this library will also allow the view file to be more readable. View files in Codeigniter (or in any other framework following MVC) always contains both html and php codes which make them a bit harder to read. This problem can be eradicated by using a parser engine which makes the view files a lot more easier to work with.

Codeigniter, by default, comes with an optional template parser. But, unfortunately, that one does not provide sufficient pseudo markup to work with. Zaq, without doubt, is able to provide much more flexibility while building view files with pseudo markup to replace php codes.

Let's take a look at Zaq's insight and usage.


Installation

  1. Download Zaq

  2. Copy libraries/Zaq.php to your application/libraries/ folder

  3. Copy config/zaq.php to your application/config/ folder.

  4. Create the folder if not exists: application/cache

  5. Set application/cache writable.


Initialization

Like other libraries in CodeIgniter, the Zaq library class is initialized in your controller using the $this->load->library() method:

$this->load->library('zaq');

Or you can autoload the library in autoload.php

Once loaded, the Zaq library object will be available using: $this->zaq

About

Zaq - Codeigniter Template Parser Engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages