I have the following code in my contacts model:

function afterFind($results) {
                foreach ($results as $key => $val) {
                        if (isset($val['Contact']['username']))
                        {
                                $results[$key]['Contact']['fullname'] =
$val['Contact']['lname'].', '.$val['Contact']['fname'];
                        }
                }
                return $results;
}

The problem is that the special character   is being converted to
  when used in a view...  So instead of seeing Doe, John   I
am seeing Doe, John  in my view

If I replace ', ' with ', ' the browser allows word wrapping when
it is displayed in a table.  I don't what it to wrap a proper name.

Please help. TIA.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to