add flavor to your CakePHP applications with some tasty syrup

Sluggable Behavior 1.1.36 released

Posted in Releases, Sluggable by mariano.iglesias @ November 26th, 2007

Sluggable Behavior 1.1.36 has just been released and is available for immediate download on Cake Syrup download page. This release introduces some small fixes, it adds support for character translation tables, and adds more test cases for better test coverage. Go to the Sluggable Behavior page to learn more about this behavior.

2 Comments

  1. Comment by Guy @ January 14, 2008 9:53 am

    Hi,

    I’m building an RSS publisher plug-in for Cake 1.2. I added sluggable to app/plugins/blog/model/behaviors. I also added actsAs(’sluggable’) to the article model. When I call $this->Article->save(….), the save works but the slug is not generated or saved to the DB.

    Is it impossible to use behaviors in plugins?

    Thank you,

    Guy

  2. Comment by mariano.iglesias @ May 4, 2008 3:02 am

    @Guy: when you want to use a behavior that resides in a plugin you need to prepend its name with the plugin name, using dot notation:

    var $actsAs = array(’plugin.Sluggable’);

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>