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...

Data Registry class improvements

July 12th, 2010 by Xavier Perez 
Data Registry have been improved to handle files, as a normal file storage, as a caching system or as a repository space. Now, in examples, all storage vars are saved in files, with TTL. Any class of var can be saved for every user session, but also Data_Registry can save files for all users, not only restricted to every user. Allows to save config files, language translations, core data, mysql results… Take...

New Data_Registry Class

June 1st, 2010 by Xavier Perez 
I have developed a new class to save any kind of data in a php program, and retrieve it in any other php script. The Data_registry class is a singleton class, and all data can have persistence saved in the session files (DB, memcache also). It’s an great improvement over Zend_Registry class, duo to it’s better capabilities. This can help in debugging, tracing code, retrieving errors after...

Codeginiter profiler with FirePHP

March 25th, 2010 by Xavier Perez 
I have added to my own Profiler the hability to display results on Firebug. I have two form of display data: firebar or window.  Window display data on a div over the code, allowing to read enterilly all the page, meanehilr firebar display data on the firebug console (must to have instaled firephp ) (more…)

How Zend Server can improve high foot print frameworks

March 22nd, 2010 by Xavier Perez 
Zend Server (and also Zend Server Comunity Edition), comes with own APC, cache and some more improvements all together, and also two servers: Apache with php as cgi, and a lighthttpd, allowing to server static pages and dinamyc pages separatelly, and decreasing foot print in almost 300%. Frameworks as Zend, with a foot print of 12MB RAM, takes only 4MB RAM served with Zend Server, allowing the system...

Best PHP framework ?

March 22nd, 2010 by Xavier Perez 
Which is the best PHP framwework to develop your applications ? There are a lot of frameworks out there that can do your requeriments without problems, but you must to make another important questions: How many visitors are expected to have your site ? How much important it’s the quick development versus maintainability ? How many developers will work on it ? What kind of helpers and custom...