I have a field -> tags text,
how do i output all entries tags? without duplicates
eg:
entry1 - tags: one, two, three
entry2 - tags: two, five
i want to be able to output all (one, two, three, five) without duplicates
so how do i find this in model/controller and output it to view?
do i use,
key::model()->findAll() ??
in controller in your action you need to put something like this
and in view something like this
read this: http://php.net/manual/en/ref.array.php
and this:
http://www.yiiframework.com/doc/guide/1.1/en/basics.view
http://www.yiiframework.com/doc/guide/1.1/en/basics.controller