Sparks 1.1 is now available here: Sparks.v1.1.zip.
* Fixed used of $this inside view files. ($CI still works as well).
* Integrated into CI Loader class better.
* New feature You can now pass data arrays into the sparks_include function via an optional second argument. I.e.
<? sparks_include('newslist.php', array('news' => $recent_news)); ?>
<? sparks_include('newslist.php', array('news' => $popular_news)); ?>
This allows you to reuse ‘parts’ over and over again with separate data. Note that the supplied data are merged into the global variables, i.e. all the global variables are available in the sub-part, but also the variables you pass in!
* For PHP 4 users:
//Can be replaced by:
$this->sparks->initialize($id, $group, $ttl);
//Less typing for php4 users!
Ok, it should be a drop in replacement. I have not had time to test this extensively. Please let me know if you find a problem.
I am planning v2.0 which will be quite different (internally)... Any suggestions?