Toronto web design - 3magine Inc.

1 (866) 365 2407

Levitra online Vicodin Online Propecia online

Labs

BBClone and CodeIgniter

We ran into an issue with trying to get BBClone working under CodeIgniter earlier this week. We found that you cannot include the BBClone code in a controller, or a view page, but instead have to add it to the index.php file in your CodeIgniter root directory. We found the solution over at the CodeIgniter forums, and wanted to share it with everyone.

After BBClone is installed and configured, add this code to the index.php in your CodeIgniter installation directory.

$page = $_SERVER["REQUEST_URI"];
define("_BBC_PAGE_NAME", $page);
define("_BBCLONE_DIR", "bbcode/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);

Tags: ,

Thursday, November 27th, 2008 Websites

1 Comment to BBClone and CodeIgniter

  1. [...] BBClone and CodeIgniter | Toronto Web Design & Web …Setting up BBClone under CodeIgniter. … Tags: BBClone, CodeIgniter. Thursday, November 27th, 2008 [...]

  2. bbclone on April 1st, 2010

Leave a comment