88,190 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
Fetching WordPress content from CodeIgniter
| Contributor | : fjallstrom |
| : Log in to view | |
| Author Website | : http://earthpeople.se |
| Spark Website | : http://earthpeople.se/labs/2011/08/fetching-wordpress-content-from-codeigniter/ |
| Repository Type | : git |
| Number of Installs | : 400 |
php tools/spark install -v0.2.0 ciwp
Or download this version manually:
Get ciwp-0.2.0.zip
Fetch data from one or many WordPress installations. This is a very early version and quite rough. It only supports the methods below. More to come.
First - open up sparks/config/wp.php and tell the spark where you have your WordPress install root (ie where the wp-config.php is located on the server). Note that you need both file and mysql access to the WordPress installations. Next in your controller:
$this->load->spark('ciwp/0.1.0');
print_r($this->wp->get_post('blog', 1);
print_r($this->wp->get_installations());
print_r($this->wp->wp_get_recent_posts('blog', array()));
print_r($this->wp->get_post_meta('blog', array()));
print_r($this->wp->get_comments('blog',array()));
print_r($this->wp->get_children('blog',array()));
print_r($this->wp->wp_insert_post('blog',array()));
print_r($this->wp->wp_insert_comment('blog','array()));
print_r($this->wp->get_users('blog','array('include' => 1, 'exlude' => 3, 'number' => 5)));
Methods in this library will take the same arguments as the WordPress function in the Codex.
Wordpress Codex: http://codex.wordpress.org/
php tools/spark install -v0.1.0 ciwp
Or download this version manually:
Get ciwp-0.1.0.zip
php tools/spark install -v0.0.8 ciwp
Or download this version manually:
Get ciwp-0.0.8.zip
php tools/spark install -v0.0.7 ciwp
Or download this version manually:
Get ciwp-0.0.7.zip