I would like to implement an autoslug-function for two models in CakePHP3 and use the beforeSave
-callback for that which works fine. However the slug structure is a bit different than in Inflector::slug
, so I wrote a small function for the different structure which finally leads to my question
In Cake2 I would have placed this helper function in AppModel which is not existing anymore. What's the best way to do that now? A behaviour (which seems a bit biggish for 2 lines of code) or class AppTable extends Table
or ..?