User Profile

User
 raphaele
Location
 Paris
URL
 http://rstin.com

Recent Comments

Posted 06/02/2009 03:51am
Cake has changed the way complex queries are written (the conditions comes with the field) so now it goes from line 121 :
$conditions = array($Model->alias . ‘.’ . ’slug LIKE’ => $slug . ‘%’);

if (!empty($Model->id))
{
$conditions[$Model->alias . '.' . $Model->primaryKey. ' <>'] = $Model->id;
}

if you want to maintain unique slugs (thanks to red frog who started me on founding the solution : http://blog.awpny.com/2008/07/sluggable-behavior-rc2/)
Posted 18/01/2008 04:48am
Search indexing problem can easily been solved by adding virtal directories and url rewritng transforming any /en/ into an ending ?lang=en and overriding the $html->link so it outputs any link with a begining /en/ if en is the current language or implementing a helper that does the same job without touching to $html->link.
but i really wonder after reading this article how you do to translate your database data ? it seems it is available and i have that impression listening to the dedicated show though my poor english doesn't allow me to get the how-to...
i only need a kick-off here: what's the beginning of it ? how do i start to be able to translate the data in my tables ?
anyway thanks for the great job !!! cakephp rocks.