Alexandru Ciobanu-4 wrote:
>
>
> On 05/13/2009 06:23 PM, mig_akira wrote:
>>
>>
>> $conditions = array($Model->alias . '.' .
>> $this->__settings[$Model->alias]['slug'] =>' LIKE ' . $slug . '%');
>>
>>
> I can't recall when the change was made but your code won't work with
> any recent cakephp releases.
>
> It should be:
>
> $conditions = array($Model->alias . '.' .
> $this->__settings[$Model->alias]['slug']. ' LIKE ' => $slug . '%');
>
>
That's great, thanks for warning me! I'm using version 1.2.2.8120, and in
this version it's working, but when I upload everything to the server, I
will change the code to what you said!
THanks again!
--
View this message in context:
http://www.nabble.com/generating-slug-from-title---must-be-unique%21-%28using-sluggable-1.1.3%29-tp23515374p23529923.html
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---