archive-org.com » ORG » G » GETSPARKS.ORG

Total: 447

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • CodeIgniter Sparks | php-activerecord
    manually Get php activerecord 0 0 2 zip How To PHPActiveRecord Spark PHPActiveRecord is an open source ORM library largely based on Ruby on Rails ActiveRecord This spark is used to easily integrate PHPActiveRecord into CodeIgniter 2 0 NOTE PHPActiveRecord requires PHP5 3 logging requires the PEAR Log library Installation Sparks Manager Navigate to the root of your CodeIgniter project and run php tools spark install php activerecord Manually Navigate to your CodeIgniter project s sparks folder Extract the php activerecord spark here ensure it is named php activerecord Configuration PHPActiveRecord will use the config database php file to determine your database settings It is capable of handling several connections but will default to your active group connection You may change the connection any model uses within the model itself PHPActiveRecord does not require you to define your database tables before use simply extend your model from the ActiveRecord Model class and your model will be ready for use aside from any extra configuration you may want to add later Documentation Examples documentation and help forums are available at http phpactiverecord org Verify PHPActiveRecord Works Create a table in your database named tests and give it some test information perhaps an id and a varchar column Create at least one or two records Create a new file in your models directory named Test php Give model the following content php class Test extends ActiveRecord Model Proceed to welcome php within your controllers directory Within the index function enter the following prior to the view being called this load spark php activerecord 0 0 2 echo pre var dump Test all exit If you ve followed the steps above you should now see a print out of your object with the class of your Model Success PHPActiveRecord is now ready for

    Original URL path: http://getsparks.org/packages/php-activerecord/versions/HEAD/show (2016-02-09)
    Open archived version from archive

  • CodeIgniter Sparks | redis
    If you use this library in any other way don t copy the autoload php to your config directory Breaking changes As of v0 4 this library does not longer support the plain text syntax for overloaded commands i e this redis set foo bar Please pass extra command arguments as real PHP arguments instead i e this redis set foo bar You can still use the plain text syntax using the command method e g this redis command SET foo bar if you need this functionality Documentation Configuration This library expects a configuration file to function correctly A template for this file is provided with the library Generic command You can execute any command using the command method just like you re using redis cli this redis command PING This library also support PHP s overloading functionality This means you can call undefined methods which are then dynamically created for you These calls are routed to the generic call method You can also pass in arrays this redis hmset foohash array key1 value1 key2 value2 Examples Set a new key with a value and retrieve it again this redis set foo bar Get a value by its key this redis get foo Delete a bunch of keys this redis del array foo foo2 Working with lists Because PHP lacks basic list and dictionary map hash data types this library tries to detect this on its own This is done by using the following heuristic if the smallest key in an array equals 0 and the largest key equals the length of the array 1 the array is considered to be a list In this case the library s internals will automatically strip away the keys before passing the array to the Redis server Contributing I am a firm believer

    Original URL path: http://getsparks.org/packages/redis/versions/HEAD/show (2016-02-09)
    Open archived version from archive

  • CodeIgniter Sparks | Browse Featured Packages
    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 See More Browse Featured Packages These are sparks that the GetSparks team thinks are worth a spin Package Gist Author Last Push codeigniter payments A Uniform Payments Interface for CodeIgniter One API to learn many payment systems calvinfroedge July 11 2012 restclient A RESTful client CodeIgniter library that can auto detect the format and request its own philsturgeon April 24 2012 spark sdk A spark for validating other sparks katzgrau May 6 2011 php activerecord Integrates PHPActiveRecord into CodeIgniter PHP5 3 machuga October 29 2011 redis A CodeIgniter library to interact with Redis joelcox February 3 2013 fire log Browse and filter all your log files from a controller action dperrymorrow October 4 2011 mongodb A query builder library for interacting with MongoDB alexbilbie May 4 2012 unzip Extract ZIP files in CodeIgniter without installing any PECL extensions for PHP philsturgeon March 1 2011 autoform A super easy powerful and customizable form generator for Codeigniter tobz June 19 2014 template Template

    Original URL path: http://getsparks.org/packages/browse/featured (2016-02-09)
    Open archived version from archive

  • CodeIgniter Sparks | example-spark
    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 See More 0 Love 0 Like 0 Hate 251 Installs Basic Information example spark An example spark to install and use as a model for building sparks Tweet Contributor katzgrau Email Log in to view Author Website http codefury net Repository Type hg

    Original URL path: http://getsparks.org/packages/example-spark/show (2016-02-09)
    Open archived version from archive

  • CodeIgniter Sparks | Writing Your Own
    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 See More The Spark Spec Format Specs are a required part of submitted sparks as of the beta launch At the root of every spark is a spec file named spark info This spec file provides information to the GetSparks contribution processor It has information about compatibility and dependencies Spec Format An example of a spec is specified below This is the spark sdk specification It s in a magical format without a name Use this format while developing your own sparks This is the spark name This should be the registered name of the spark It s only used for informational purposes name spark sdk This is the current version of this spark All sparks should be in x x x format Validation will fail otherwise This is the version that will appear on the website version 1 0 0 This is the version of CodeIgniter this spark is compatible up to It should be in x x x format compatibility 2 0 2 These are other sparks which this spark needs in order

    Original URL path: http://getsparks.org/spec-format (2016-02-09)
    Open archived version from archive

  • CodeIgniter Sparks | The Package Manager and Repository
    getsparks Tweet GetSparks org News You re Still Using CodeIgniter January 8 2015 from laravel com 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 See More

    Original URL path: http://getsparks.org/login (2016-02-09)
    Open archived version from archive


  • name OR alias class list path library Modules find library this module libraries load library config file as params if params NULL list path2 file Modules find alias this module config path2 AND params Modules load file file path2 config if path FALSE this ci load class library params object name alias this ci classes class else Modules load file library path library ucfirst library CI APP alias new library params this ci classes class alias return CI APP alias Load an array of libraries public function libraries libraries foreach libraries as library this library library Load a module spark public function spark spark params NULL object name NULL if is array spark return this sparks spark spark ltrim spark spark rtrim spark spark path SPARKPATH spark parts explode spark class strtolower parts 0 this module spark if spark NULL autoload path spark path config autoload EXT else autoload path APPPATH config autoload EXT if file exists autoload path return FALSE include once autoload path this load autoloader autoload Load an array of sparks public function sparks sparks foreach sparks as spark this spark spark Load a module model public function model model object name NULL connect FALSE if is array model return this models model alias object name OR alias end explode model if in array alias this ci models TRUE return CI APP alias check module list path model Modules find strtolower model this module models if path FALSE check application packages parent model model object name else class exists CI Model FALSE OR load class Model core if connect FALSE AND class exists CI DB FALSE if connect TRUE connect this database connect FALSE TRUE Modules load file model path model ucfirst model CI APP alias new model this ci models alias return CI APP alias Load an array of models function models models foreach models as model this model model Load a module controller public function module module params NULL if is array module return this modules module alias strtolower end explode module CI APP alias Modules load array module params return CI APP alias Load an array of controllers public function modules modules foreach modules as module this module module Load a module plugin public function plugin plugin if is array plugin return this plugins plugin if isset this ci plugins plugin return list path plugin Modules find plugin pi this module plugins if path FALSE return Modules load file plugin path this ci plugins plugin TRUE Load an array of plugins public function plugins plugins foreach plugins as plugin this plugin plugin Load a module view public function view view vars array return FALSE list path view Modules find view this module views this ci view path path return this ci load array ci view view ci vars this ci object to array vars ci return return public function ci is instance public function ci get component component return CI APP component public function get class return CI APP class function ci load ci

    Original URL path: http://getsparks.org/static/install/mx/Loader.php.txt (2016-02-09)
    Open archived version from archive


  • substr module 0 pos if class self load module if method exists class method ob start args func get args output call user func array array class method array slice args 1 buffer ob get clean return output NULL output buffer log message error Module controller failed to run module method Load a module controller public static function load module is array module list module params each module params NULL get the requested controller class name alias strtolower end explode module return an existing controller from the registry if isset self registry alias return self registry alias get the module path segments explode module find the controller list class CI APP router locate segments controller cannot be located if empty class return set the module directory path APPPATH controllers CI APP router fetch directory load the controller class class class CI APP config item controller suffix self load file class path create and register the new controller controller ucfirst class self registry alias new controller params return self registry alias Library base class autoload public static function autoload class don t autoload CI prefixed classes or those using the config subclass prefix if strstr class CI OR strstr class config item subclass prefix return autoload Modular Extensions MX core classes if strstr class MX AND is file location dirname FILE substr class 3 EXT include once location return autoload core classes if is file location APPPATH core class EXT include once location return autoload library classes if is file location APPPATH libraries class EXT include once location return Load a module file public static function load file file path type other result TRUE file str replace EXT file location path file EXT if type other if class exists file FALSE log message debug File already loaded location return result include

    Original URL path: http://getsparks.org/static/install/mx/Modules.php.txt (2016-02-09)
    Open archived version from archive



  •