A Wall of Scripts, Snippets and Tutorials

Using Codeigniter from the command line

By on July 21, 2015 in Controllers with 2 Comments
Using Codeigniter from the command line

Running a PHP script from the command line (CLI) is nothing new, but when using the Codeigniter framework you need the framework to be loaded correctly to processes the call. Command line methodologically

Important You must call index.php before your controller, method and parameters as normally this would be handled by the .htaccess file […]

Continue Reading »

Google Recaptcha v2.0 Codeigniter Library – simple but powerful

By on May 24, 2015 in Blog, Libraries with 0 Comments
Google Recaptcha v2.0 Codeigniter Library – simple but powerful

A simple but powerful way to handle your Google Recaptcha v2.0 validation Recaptcha Library Save code to: /application/libraries/recaptcha.php

Using this library

Getting your site key from the library

Please comment below and subscribe for more FREE codeigniter scripts and tips

Continue Reading »

Using $this Inside a Library

By on April 20, 2015 in General CI, Libraries with 1 Comment
Using $this Inside a Library

Using $this inside a library is a very simple piece of code. It means you will not have to store the instance of CodeIgniter while still being able to use all the codeIgniter classes and functions. Watch on YouTube Example code used before

This is a very long winded way for using the instance […]

Continue Reading »

Debug Helper Function

By on April 19, 2015 in General CI, Helpers with 0 Comments
Debug Helper Function

Debugging is inevitable part of building any application and can quickly rack up the development time. These functions below will help you to quickly view what is going on and solve the issue faster with one call. File: Any helper function

Give this functions ago after loading your helper function for example

Taking […]

Continue Reading »

Route Control

By on April 19, 2015 in Config, General CI, Helpers with 0 Comments
Route Control

A complex site may require a lot of custom routes. For security reason the admin URL should be hidden from the public by avoiding common admin names like: domain.com/admin. The result is a large routes files to control the site URL’s. There is nothing wrong with this as its good for search engine optimization and user […]

Continue Reading »

Auto Load Models

By on April 19, 2015 in Config, Models with 3 Comments
Auto Load Models

If you are loading a model often, it may be better for code cleanliness to auto load the mode on framework start up. When this should be used Model is required more than 75% of the time throughout your site Does not have a heavy __construct method  Not an admin based model File: /application/config/autoload.php

Caution […]

Continue Reading »

Top