232,517 Installs and Counting! Get Sparks Now!
Hey! Keep up to date with the project through its beta and public launch by following @getsparks.
Tweet
A Quick Looks At Sparks (EllisLab Official Post)
March 11, 2012
from: codeigniter.com
The Top Sparks of 2011
December 31, 2011
from: codefury.net
CodeIgniter Starter Project − A Starting Point for Any CI Dev
December 12, 2011
from: github.com
NetTuts+ Tutorial for GetSparks
November 24, 2011
from: net.tutsplus.com
This document will explain how to install sparks with both the spark manager and manually.
In this example, we'll install the 'example-spark' via the terminal.
Navigate to the root of your CodeIgniter application where you previously installed sparks. On OSX or Linux, type:
php tools/spark install -v1.0.0 example-spark
On Windows, type:
php tools\spark install -v1.0.0 example-spark
You should see:
[ SPARK ] Retrieving spark detail from getsparks.org [ SPARK ] From Downtown! Retrieving spark from Mercurial repository at https://github.com/katzgrau/example-spark [ SPARK ] Installing spark [ SPARK ] Spark installed to ./sparks/example-spark/1.0.0 - You're on fire!
Specifying the version isn't required. You can leave that -v1.0.0 option out in order to get the latest version.
Anyway, now your spark is installed! In your application, try:
$this->load->spark('example-spark/1.0.0'); # We always specify the full path from the spark folder
$this->example_spark->printHello(); # echo's "Hello from the example spark!"
Now you can install all the sparks you want! You can even autoload sparks in your application's config/autoload.php:
$autoload['sparks'] = array('example-spark/1.0.0');
If you feel like contributing your own, check out Making Sparks.
Follow these directions for installing sparks without a script. This is most practical for developers on shared servers, where using the PHP would prove difficult or impossible.
/application /system /sparks ..../example-spark ......../1.0.0 ............/config ............/libraries
Now your spark is installed! Try this from within your application:
$this->load->spark('example-spark/1.0.0'); # Don't forget to add the version!
$this->example_spark->printHello(); # echo's "Hello from the example spark!"
You can also autoload sparks in your application's config/autoload.php:
$autoload['sparks'] = array('example-spark/1.0.0');
Lookin' good? Want to contribute? Check out Making Sparks.