We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e436f07 commit 4f50400Copy full SHA for 4f50400
Controller/Component/TaggableComponent.php
@@ -1,5 +1,7 @@
1
<?php
2
App::uses('Component', 'Controller');
3
+App::uses('Utility', 'Inflector');
4
+
5
class TaggableComponent extends Component {
6
public $name = 'Taggable';
7
@@ -23,6 +25,9 @@ public function filterQuery($query = array()) {
23
25
$tags = array();
24
26
if (!empty($this->request->named['tag'])) {
27
$tags = array($this->request->named['tag']);
28
+ foreach ($tags as $k => $tag) {
29
+ $tags[$k] = Inflector::humanize($tag);
30
+ }
31
$query['tags'] = $tags;
32
}
33
$this->controller->set(array('taggableTags' => $tags));
0 commit comments