php - How to add an image link inside "configure::write()" in cakephp? -


i want set logo application.

in appcontroller.php page wrote following line of code:

configure::write('companylogo','echo $this->html->image('logo.png', $options = array());');"  

but, it's not working me. have suggestion how make work? thanks

components in controllers , helpers in views. trying use helper in controller, won't work. instead write image_name in config :

`configure::write('config.logo', 'logo.png');` 

use layouts/views

$image_name= configure::read('logo');  $this->html->image($image_name, array()); 

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -