Hello all,
There could be a vary simple way to achieve what I am trying to do in cakephp but I am unable. here is what I am trying to do : I have a settings file which I read through configuration object and the setting as
$config['pageMeta']=array(
'1'=>array('desc'=>'<?php echo $param1 ?> some data, <?php echo $param2 ?> some content in <?php echo $param3 ?>')
);
What I would like to do is that read the above string as
Configure::read('pageMeta.1.desc');
and somehow evaluate 'param1','param2' and 'param3' replaced with actual values. I am doing this in view layout. I could probably write a function to do string replace but not sure if that is the right way to do.
Any help is appreciated.
thanks aboxy