[eluser]artisa[/eluser]
hi,
recent i had a situation where i was generation a list of data in "view", nothing special.
but then i was wondering how should i show status, like:
1 - open
2 - close
3 - error
Code:
//views/cool_stuff/list.php
...
echo '<td>'.$item->status.'</td>';
...
but, as you may guess status 1,2 and 3 doesn't look cool enough.
so, first thought was to make array, like:
Code:
$super_status = array('1'=>'Open','2'=>'close','3'=>'Error');
and then i got confused, where should i put this array. Some other views might be interested into these status titles as well.
So, whats the best practice?