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 | minify
    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 1 Love 0 Like 0 Hate 2 265 Installs Basic Information minify A library that provides minify functions using CodeIgniter drivers Tweet Contributor jenssegers Email Log in to view Author Website http www jenssegers be Spark Website http jenssegers be Repository Type git Number of Installs 2 265 Get the Latest 1 0 0 Pushed February 3rd 2012 php tools spark install v1 0 0 minify Or download this version manually Get minify 1 0 0 zip How To CodeIgniter Minify A library that provides minify functions using CodeIgniter drivers The library detects the file extension and will call the right driver to minify that file By default a javascript en css driver is included but custom drivers can be added Installation Place the Minify folder in your application s libraries folder Usage Use direct drivers access to minify content load the driver this load driver minify minify javascript content minified this minify js min content minify css content minified this minify css min content If you

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


  • CodeIgniter Sparks | advanced-images
    controller s resize method route media any media resize 1 Optional autoload the image helper by adding it to autoload helper array in your config autoload php file Configuration In your config images php file you need to specify what preset sizes you will be using for your images Image Preset Sizes Specify the preset sizes you want to use in your code Only these preset will be accepted by the controller for security Each preset exists of a width and height If one of the dimensions are equal to 0 it will automatically calculate a matching width or height to maintain the original ratio If both dimensions are specified it will automatically crop the resulting image so that it fits those dimensions config image sizes square array 400 400 config image sizes rectangle array 600 400 config image sizes long array 200 600 config image sizes wide array 600 200 config image sizes small array 300 0 config image sizes medium array 500 0 config image sizes large array 800 0 Each preset has a width and a height If one of the dimensions are equal to 0 it will automatically calculate a matching width or height to maintain the original ratio if you specify both dimensions it will automatically crop the resulting image so that it fits those dimensions Library The resize and crop logic is grouped in a library that extends CodeIgniter s image lib and adds a fit function You can use this library to resize and crop an image to fit the specified dimensions like this config source image path to image mypic jpg config new image path to new image newpic jpg config width 100 config height 100 this load library image lib config this image lib fit The function will return TRUE on sucess or FALSE on failure Error messages can be read like the normal library with the display errors method When an image is cropped the center axis is used by default If you want to override this behaviour you can specify your own x axis and y axis Configuration options image library Sets the image library to be used library path Sets the server path to your ImageMagick or NetPBM library If you use either of those libraries you must supply the path source image Sets the source image name path The path must be a relative or absolute server path not a URL dynamic output Determines whether the new image file should be written to disk or generated dynamically Note If you choose the dynamic setting only one image can be shown at a time and it can t be positioned on the page It simply outputs the raw image dynamically to your browser along with image headers quality Sets the quality of the image The higher the quality the larger the file size new image Sets the destination image name path You ll use this preference when creating an image copy The path must be a relative or

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

  • CodeIgniter Sparks | friendly-template
    so you don t get any errors head title php echo this template title title php echo this template stylesheet head body php echo this template content body These variables are in fact Partial Ojects so you can still manipulate them from inside the template view file like this php echo title prepend My Website Partial manipulation methods will always return the partial object itself for further chaining or for displaying So this is perfectly possible php echo sidebar cache 500 widget login prepend Login Partial manipulation Partials have a few handy methods for manipulating their content such as partial set overwrites the content partial append append something partial add same as append alias partial prepend prepend something partial content gets the content partial default only set content if empty You can also load dynamic content inside partials from view files or widgets The object named partial used in the method chaining below is the name of the partial you want to load the content into this template partial view Append or overwrite the partial with a view file with parameters this template partial view view file array overwrite FALSE Append or overwrite the partial with a parsed view file with parameters this template partial parse view file array overwrite FALSE Append or overwrite the partial with a widget s output this template partial widget widget name array overwrite FALSE Publishing The template class only has a few methods I chose to do this because almost everything can be managed by using the flexible Partial Object If you want to publish the entire template with the current partials to the output you can use the publish method You can pass a custom template file and optional data if wanted this template publish template array title Title is overwritten Most of the time this will be empty using the template file from the config this template publish If you wish to set the template file before publishing eg in a controller s constructor this template set template template2 Triggers Some partials have built in triggers stylesheet you only need to pass the url javascript you only need to pass the url meta will convert the arguments to the right meta tag title converts special characters description will convert special characters just like the title This is an example of what these built in triggers do this template stylesheet add stylesheet css array media all link rel stylesheet href http myweb com stylesheet css media all this template javascript add script js script src http myweb com script js script this template meta add robots index follow meta name robots content index follow this template title set Dad Son Dad amp Son You can set your own triggers for functions or methods for any partial object like this function this template partial bind strtoupper method this template partial bind this typography auto typography This will trigger the function or method whenever you manipulate the partial s content Widget Widgets are intelligent partial

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

  • CodeIgniter Sparks | perm
    from net tutsplus com See More 1 Love 1 Like 0 Hate 2 275 Installs Basic Information perm A simple flexible access control library Tweet Contributor ccschmitz Email Log in to view Author Website http chris schmitz com Spark Website https github com ccschmitz codeigniter perm Repository Type git Number of Installs 2 275 Get the Latest 0 1 0 Pushed February 1st 2012 php tools spark install v0 1 0 perm Or download this version manually Get perm 0 1 0 zip How To Is that a perm A simple access control library for CodeIgniter Here s a quick rundown of the features Use group and or role based controls Validate single or multiple required roles Validate hierarchical or optional roles Automatic database configuration Usage You can set group or role based controls Groups You can use the name of the group or the group s ID this perm in group 3 or this perm in group admin Roles You can validate a single role by using the name of the role in the has role method this perm has role users create You can also pass multiple required roles as an array required roles array admin users this

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

  • CodeIgniter Sparks | files
    read system settings settings echo sys get site name Outputs My Site This package supports basically any type of variable found in PHP Other basic examples of using different variable types this files data 1 001 save float settings this files data 1231 save integer settings this files data Example save string settings this files data array save array settings this files data FALSE save boolean settings Public API Full Path is relative to the FCPATH the index php file So if you want to save something below the index php file on your server just have a line like the following this files save parallel to public html file parallel TRUE this files setup array settings Allows you to override the default configuration by passing an array where the keys match the configuration settings this files ext string e php Change the extension of the file you are attempting to save or read By default this is php but you can change it to anything this files like string type config If the extension is PHP it will save or read the data like the specified CodeIgniter file Available options are config lang or for none this files data mixed data This must be called before save or no data will be saved to the file Data will be reset everytime save or read is called this files save string filename string key name files data bool is full path FALSE filename path filename EXTENSION NOT NEEDED this files save filename key name this files read string filename string key name files data bool is full path FALSE This will load the file and return the requested variable if available cache this files read path filename key name this files delete string filename bool is full path FALSE You

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

  • CodeIgniter Sparks | markdown-extra
    Contributor tomcode Email Log in to view Author Website http thomastraub com Spark Website https github com tomcode ci spark markdown extra Repository Type git Number of Installs 2 365 Get the Latest 0 0 0 Pushed January 30th 2012 php tools spark install v0 0 0 markdown extra Or download this version manually Get markdown extra 0 0 0 zip How To Markdown Extra This CodeIgniter package spark transforms markdown to HTML It uses Michel Fortin s extra branch of the php markdown library version 1 2 5 see also Notes Kenny Katzgrau s markdown spark served me as blueprint Current version number 0 0 1 Usage The package spark consists of one helper function parse markdown extra which accepts a block of markdown extra and returns HTML You can install it either as package or as spark As spark Load the spark and call the parse markdown extra function x x x is the version number this load spark markdown x x x html parse markdown extra some markdown string As package Add the package path load the helper and call the parse markdown extra function this load add package path path to the markdown package this load

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

  • CodeIgniter Sparks | codeigniter-template
    Type git Number of Installs 2 305 Get the Latest 1 0 4 Pushed September 24th 2014 php tools spark install v1 0 4 codeigniter template Or download this version manually Get codeigniter template 1 0 4 zip How To Requirements CodeIgniter 2 0 0 PHP 5 2 0 Install via sparks php tools spark install v1 0 4 codeigniter template Usage copy file into correct directory cp config template php application config cp libraries template php application libraries you can reference layout example file template layout php Set default template layout and put layout file into application views directory config template layout template layout Initialize template library this load library template add css path this template add css http xxxx index js screen add javascript path put the file on bottom if the second parameter is set true default is false this template add js asset js index js TRUE add meta tag this template add meta tag og title Test Title property it will output meta property og title content Test Title this template add meta tag keywords some keywords it will output meta name keywords content some keywords add title segment this template add title segment test

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

  • CodeIgniter Sparks | presenter
    0 Hate 2 268 Installs Basic Information presenter Implement the Presenter pattern in a CodeIgniterish way Tweet Contributor machuga Email Log in to view Author Website http matthewmachuga com Spark Website https github com machuga codeigniter presenter spark Repository Type git Number of Installs 2 268 Get the Latest 0 0 1 Pushed January 26th 2012 php tools spark install v0 0 1 presenter Or download this version manually Get presenter 0 0 1 zip How To Presenter Spark Presenter is designed to allow you to implement the presenter pattern easily in your CodeIgniter views Installation Sparks Manager In your shell navigate to the root of your CodeIgniter project and run php tools spark install presenter Manually Navigate to your CodeIgniter project s sparks folder Extract the presenter spark here ensure it is named presenter Additionally Be sure to create a directory named presenters in your application folder How To You may choose to either autoload the spark or load it manually via this load spark presenter version number To load the presenter use this presenter load user user The second parameter is optional and may be loaded as an individual instance later via user presenter new User Presenter user

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



  •