Thanks for the info.
I added the following code to the replaceLive function to make $config accessible, but it doesn't appear to be working as expected in the list/search view?
if ( $str != '' && strpos( $str, '$config' ) !== false ) {
$matches = '';
$search = '#\$config\[\'([a-zA-Z0-9_]*)\'\]#';
preg_match_all( $search, $str, $matches );
if ( count( $matches[1] ) ) {
foreach ( $matches[1] as $k=>$v ) {
$v2 = ( isset( $config[$v] ) ) ? $config[$v] : '';
$str = str_replace( $matches[0][$k], $v2, $str );
}
}
}
When I do a dump($str); it seems to be replacing with the correct values, however, e.g.:
SELECT refresher_period as value, refresher_period as text
FROM #__cck_store_join_seb_site_training
WHERE site_id=505
AND course_id=1426
ORDER BY text
Any thoughts?