patch for allowing sorting of an atkOneToOneRelation attribute

ATK Framework

When using the PHP’s ATK Framework you usually sort attributes in the nodes using: $this->setOrder(‘myattribute’); However this is not possibile when using an attribute of type atkOneToOneRelation because it contains subfields. So using: $this->setOrder(‘myattribute.mysubfield’); will not work with atkOneToOneRelation. I found a solution adapting a method from another relation class directly into atkOneToOneRelation. Just open […]

Bug fix for the atkTimeAttribute

ATK Framework

When working with the ATK Framework i found that atkTimeAttribute (and atkDateTimeAttribute) has a bug that prevent ATK from working (expecially autocomplete) at line 277 of class.atkTimeAttribute.php this is the line to fix:

FRAD: framework for agile and rapid PHP CRUD development

frad-example-cms-1

PHP Framework for PHP Rapid Application Development, support any PHP database. Allow AGILE and rapid development of web based database applications.

css tricks for non web designers

Those are some CSS tricks i’ve been used or testing all around the web. I think it’s good to share this for all the non webdesigners around. Apply alternate CSS Class Background Color on List items If you are generating dynamically rows for a list item, perhaps you’re styling a table or a form and […]

How to disable codeigniter’s cache

Codeigniter

Learn how to disable Codeigniter’s cache for some specific IP address or logged in users and how to implement your own cache logic. Enabling the Codeigniter’s cache Enabling the cache is very easy in your Codeigniter’s application. In any of your controller when you want it enabled just call this function: $this->output->cache($minutes); when your controller […]

php: howto control page caching header

php e mysql

Learn how to make your PHP pages cacheables or not by proxies and browsers leveraging performances, expecially usefull when generating images or PDFs.

PHP: dynamic PDF generation problem with internet explorer, a solution

php e mysql

when generating dynamic PDF document with PHP there is an annoying bug with internet explorer that can be fixed by just cut-and-paste 2 HTTP headers