SluggedPostsTable.php 760 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * Test App SluggedPosts Model
  5. *
  6. * CakePHP : Rapid Development Framework (https://cakephp.org)
  7. * Copyright 2005-2020, Cake Software Foundation, Inc.
  8. *
  9. * Licensed under The MIT License
  10. * Redistributions of files must retain the above copyright notice.
  11. *
  12. * @copyright Copyright 2005-2020, Cake Software Foundation, Inc.
  13. * @link https://cakephp.org CakePHP Project
  14. * @since 4.1.0
  15. * @license https://opensource.org/licenses/mit-license.php MIT License
  16. */
  17. namespace TestApp\Model\Table;
  18. use Cake\ORM\Table;
  19. class SluggedPostsTable extends Table
  20. {
  21. public function initialize(array $config): void
  22. {
  23. $this->setTable('posts');
  24. $this->addBehavior('Sluggable');
  25. }
  26. }