forked from bcit-ci/CodeIgniter
-
Notifications
You must be signed in to change notification settings - Fork 0
PHP Markdown for CI 1.5.x
World Wide Web Server edited this page Jul 4, 2012
·
7 revisions
I added just a few lines of code to [url=http://www.michelf.com/projects/php-markdown/]PHP Markdown[/url] to integrate it as a CI library. This is a much less extensive hacking of the PHP Markdown source than the other CI integration (labeled for CI 1.4.x) already in the files area.
I can't see where to upload a file to this wiki, but just download [url=http://www.michelf.com/docs/projets/php-markdown-1.0.1f.zip]PHP Markdown 1.0.1f[/url], place it in your libraries/ folder as mkdn.php, and add these lines:
[code]
if(defined('BASEPATH')) { class Mkdn { function translate($text) { return Markdown($text); } } } [/code]
- Original author: Derek Jones
- How to extend helpers: See User Guide
- Modified by: Thomas Stapleton (id, classes, selected country option and all option)
- Modified by: Bradley De-Lar (construct, setLayout example)