I have this criteria params array (i try this, but it's not working):
$dataProvider = new CActiveDataProvider('mydata', array(
'criteria'=>array(
'condition' => 'row=:id',
'params' => array(**strstr(':id', '.')** => '.com')
),
i need to add a strstr
function to a params
how can i do that?
thanx from advance
I don't fully understand what you want to do but parameters should be used directly as values for queries.
You can parse/work with the parameter before sending it to the criteria or you could also try changing your query to work as you need it to. If you can provide me a more detailed example, maybe I can give you another opinion.