Simple way to create slug's to your results
These instructions to running this behavior in your project.
-
Clone the project into your Plugin folder located within your project using this
https://github.com/helderburato/cakephp-slugel
; -
Rename the folder
cakephp-slugel
toSlugel
;
- In your model, just load in $actsAs:
Default use the field name
and make virtualField
like slug
in your results.
public $actsAs = array(
'Slugel.Slugel'
);
If your want to use other field and make other slug name, run like this:
public $actsAs = array(
'Slugel.Slugel' => array(
'field' => 'otherField',
'slug' => 'mySlugField'
)
);
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning.
- Helder Burato Berto - Initial work - helderburato
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details