Skip to content

helderberto/cakephp-slugel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CakePHP 2.x Slugel

Simple way to create slug's to your results

Getting Started

These instructions to running this behavior in your project.

Prerequisities

  1. CakePHP 2.x;

Installing

  1. Clone the project into your Plugin folder located within your project using this https://github.com/helderburato/cakephp-slugel;

  2. Rename the folder cakephp-slugel to Slugel;

How to use

  1. 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'
  )
);

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

Releases

No releases published

Packages

No packages published

Languages