XCache (v.3)

December 29th, 2015 by Xavier Perez 
XCache allows to cache everything, html, json, views, objects, results from a Class->method, also can put a Cache-Control headers to be used for CDN’s or proxies. Three methods allowed: As a trait, with inheritance of all methods and automatic method cache. As a trait, using XCache methods within same class. Independent, using XCache as a separate class. XCache comes with this drivers: File Memcache Memcached MongoDB Apc Redis Read...

XHMVC Cross Modules for Codeigniter 3.0

July 2nd, 2015 by Xavier Perez 
Based on Wiredesign HMVC, (Hiererchical Model/View/Contoller), XHMVC allow to have common modules shared betweeen all applications. All the modules can have all components under only one directory: config, controllers, helpers, languages, libraries, models, views This allow to re-use a module component in other projects, only with a simple copy/paste !! Modules can be shared between different applications...


July 1st, 2015 by Xavier Perez 
Benchmark trace & log any php, without modifying a single line of code. Usefull to trace access, monitoring run times & ram and debugging params (get / post / argv). This class can log time and resources used during PHP script execution until they exit without having to change the actual script code. It appends to a log file the time a script took execute since the class was loaded, as well...

Multiple Inheritance – XTends

August 1st, 2013 by Xavier Perez 
PHP can’t do multiple inheritance as : class MyClass extends Base_controller, Another_controller Interfaces doesn’t solve the problem, namespaces solve partialy, and traits it’s only an approach. Most of my developments have common classes, but every project have it’s own particularities. I make developments under MVC concept, and all controllers have an inheritance from a Core_Controller,...

XHMVC – Common modular extensions

June 12th, 2013 by Xavier Perez 
Cross Modular Extensions for Codeigniter allow to share modules, controllers, views and models with many applications. XHMVC brings to you a standard Codeginiter core and a standard HMVC core (from Wiredesignz), allowing to share this core to multiple applications. Also, you can share config parameters, helpers, libraries, languages, views, and modules !!. From version 1.4.1, you can extend from your...

Codeginiter 2.1.2 + HMVC 5.4 + Common application

September 4th, 2012 by Xavier Perez 
Recentlly, I needed a common modules folder for various applications, and now I have decided to share my solution. The common folder can have helpers, libraries, modules (HMVC) and thir_party libraries (HMVC MX base) An application can load a library, helper etc… as usual… $this->load->library('mylibrary'). // If this library exists in application/library folder, then use this. // If this library not exists locally, the try to load from common/libraries Also,...

Convention over configuration

January 26th, 2011 by Xavier Perez 
Ok, we are sure that convention over configuration it’s the best practice to reduce time, gaining simplicity, and increasing its readibility. But, what moore ? I have been working with ORM’s that offers simplicity and also scalability, giving a lot of tools and making easy a complex queries. But… I need more… Why I must to tell the ORM all the tables I use ? Why I must to tell...

Basic SEO guidelines

October 6th, 2010 by Xavier Perez 
1. The internal optimization refers to factors that you can control in your website: * The text on your website. * The number of web pages on your website. * The number of keywords and related keywords in their web pages. * The links on your web pages to other pages on your site. * The links on its website to other websites. * The structure of your website. * The robots.txt file on your site. * The...

Language improvements Codeigniter

September 22nd, 2010 by Xavier Perez 
The language library in Codeigniter is very simple, and doesn’t  support variable substitution, only partial or complete phrases. For this reason, I have made minor changes to allow the variable substitution, thus it’s not the same espelling in different idiomas. (more…)

Data registry class improvements

September 22nd, 2010 by Xavier Perez 
More improvements has been added to this class: Instead of saving data in your session to be retrieved anywhere, I have developed my own registry class (similar to Zend Registry), with more functionalities. Support for namespaces Support for persistent namespaces (any data can be collected in any other page during customer navigation) Support as caching system Support for saving in session or files Support...