I defined a variable called $fullName in my model. It works fine but I cant make the search work. I’ve been looking trough the forums but I can’t find anything clear.
Note that what you have done so far work fine only for displaying, because they are concatenating the 2 fields in PHP layer, not in SQL layer. In order to filter by it using CActiveDataProvider, we have to concatenate them in SQL layer.
I’d actually recommend Softark’s solution now that I’ve found out it works. It’s a little bit less code because you can do away with the conditional statement.