Hi everyone, apreciate some help
based on interesting linkhttps://www.chronoengine.com/faqs/72-ccv5/5215-how-do-i-build-a-where-statement-in-ccv5.html
but i tried to put on practice
I have a model.field string like this "1,2,5,6,7" and i need obtain it "visible" in condition box of model 1
but i couldnt, let me show you what i tried:
"model" in my case is "moder"
and "field" on my case is "sesiones" that has to be converted to array
based on interesting linkhttps://www.chronoengine.com/faqs/72-ccv5/5215-how-do-i-build-a-where-statement-in-ccv5.html
but i tried to put on practice
I have a model.field string like this "1,2,5,6,7" and i need obtain it "visible" in condition box of model 1
but i couldnt, let me show you what i tried:
"model" in my case is "moder"
and "field" on my case is "sesiones" that has to be converted to array
<?php
$var = JRequest::getVar('sesiones','', 'get');
pr($var); // i obtain nothing
$var = \GCore\Models\moder::getInstance()->dbo->quote($var);
pr({$var}); // i obtain nothing
$var_array=explode(',',{$var}); // i need an array to get all "sesion" IN $var_array
return array("sesion" => $var_array);
?>