John Cox

Blogs · @wyome

Tagged codeigniter · everything

sjlu/CodeIgniter-Bootstrap · GitHub

CodeIgniter-Bootstrap bundles CodeIgniter, CodeIgniter Rest Server, Bootstrap, Font Awesome, and lodash into a single pre-configured package for faster project setup. Users can download a pre-compiled version for immediate use, or clone the repository and run the included makefile to extend or customize the build on Unix-based systems. The project includes documentation in its Wiki and is distributed under an MIT license with CodeIgniter amendments.

Permalink

flexi cart | A Shopping Cart Library for CodeIgniter

Flexi Cart 1.1, a free open-source shopping cart library for CodeIgniter, has been released with new language files, library message functionality, and AJAX demos. Unlike all-in-one e-commerce solutions, flexi Cart provides modular tools that developers can customize to build their own stores rather than a pre-built platform. The library includes comprehensive documentation, working demo examples, and community support through the CodeIgniter forums.

Permalink

Auto PHP Codeigniter CRUD | grocery CRUD

Grocery CRUD is a PHP library for the CodeIgniter framework that automatically generates Create, Read, Update, and Delete (CRUD) interfaces with minimal code required. It features cross-browser compatibility, support for 34 languages, database relationship handling, extensive customization through callbacks, and comprehensive documentation alongside an active community. The tool emphasizes simplicity in both implementation and user interface while remaining powerful enough for production use, and it's available as open-source software.

Permalink

Image CRUD for Codeigniter | WEB and DEVELOPMENT;

Image CRUD is a CodeIgniter library that simplifies multiple image uploads with automatic thumbnail generation, resizing, and reordering capabilities. It follows the same minimal-code philosophy as Grocery CRUD, allowing developers to implement complex image management functionality with just a few lines of code while handling tasks like special character renaming and relational database integration automatically.

Permalink

Advanced CodeIgniter Profiling With XHProf | Nettuts+

This tutorial explains how to install Facebook's XHProf profiler on a production server and integrate it with CodeIgniter applications using hooks to monitor real-world performance. XHProf provides hierarchical function-level profiling with minimal overhead, showing wall time, CPU usage, and memory consumption, and includes features like call graphs, run comparisons, and aggregated analysis across multiple page loads. The guide covers installation from source on Ubuntu, CodeIgniter integration setup, and interpretation of profiling results to identify bottlenecks in database calls and external service requests.

Permalink

CodeIgniter Language File Translator

Owen Christian and the author developed a CodeIgniter administration tool that lets translators manage language files through a web interface rather than editing them manually. The tool synchronizes translation keys across multiple language files, supports UTF-8 and embedded PHP code, and includes syntax checking to catch errors before they break the application. It requires setting up a master language file and corresponding empty slave files, then making them writable so the web interface can manage translations.

Permalink

Integrating Two-Factor Authentication with CodeIgniter | Nettuts+

This tutorial walks through implementing two-factor authentication in a CodeIgniter application using Duo Security's free service, which requires users to verify their identity with something they have (like a phone) in addition to their password. The guide covers setting up a Duo account and integration, strengthening password hashing with bcrypt, creating a secondary authentication page with Duo's Web SDK, and processing the two-factor verification response to complete login. The implementation allows administrators to enable two-factor authentication selectively for different users while maintaining backward compatibility with single-factor login for less security-critical accounts.

Permalink

Some slight modifications to the codeigniter profiler to dynamically display session vars, and to add EXPLAIN to all queries. — Gist

This is a modified CodeIgniter profiler class that adds two key debugging features: it displays session variables in a dedicated table during profiling output, and it automatically runs MySQL EXPLAIN queries on all SELECT statements to show query execution plans with details like table access types, key usage, and row estimates.

Permalink

A quick assets file to give you control over header and footer templates with codeigniter. Not fully documented (yet) but should be relatively easy to figure out how to get access from your controller to tpl.view files. — Gist

This CodeIgniter library provides a centralized system for managing assets (stylesheets, scripts, and meta tags) across your application by storing them in global arrays and rendering them at specific locations in your templates. Controllers can queue scripts, stylesheets, titles, and inline code to be injected into the document head or body during template rendering, making it easier to dynamically manage assets without hardcoding them directly into header and footer templates.

Permalink

(500) http://www.in-the-attic.co.uk/2010/08/02/codeigniter-google-maps-library-using-google-maps-api-version-3/

This post announces a CodeIgniter library wrapper for Google Maps API v3, built on the php-google-map-api project but adapted for CodeIgniter's structure. The library allows developers to generate maps with markers added by address or coordinates, supports multiple map types, and includes features like custom icons and tooltips, with setup requiring a simple database table and copying two PHP files to the library directory.

Permalink