Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A CodeIgniter 2.0 Parser library extension. (not compatible with CI v1.7.2)
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
libraries
README.textile

README.textile

Frisker

DESCRIPTION

Firsker is an extension of CI_Parser. It is for CodeIgniter 2.0 ONLY.

It adds some additional functionality to the base Parser library.

INSTALLATION

1. Copy MY_Parser_.php to your application/libraries folder.
2. Load it like normal: $this->load->library('parser');

USAGE

You can now use PHP functions in your template:

{date("F j, Y, g:i a")}
{strtoupper($name)}

You can also pass the parse() function a string of data, instead of a view. You just need to set the 4th parameter to FALSE:

$data = array();
$body = $this->db->get_where('pages', array('id' => 4))->row()->body;
$body = $this->parser->parse($body, $data, TRUE, FALSE);
Something went wrong with that request. Please try again.