html - Cakephp HtmlHelper for images not picking-up images from webroot -


i have cakephp (2.7.0) installed on wamp. images located under app/webroot/img.

in view have following:

<?php echo $this->html->image( 'img2.gif', array('alt' => 'img2')); ?> 

when img element renders "src" set /app/img/img2.gif instead of /app/webroot/img/img2.gif. missing?


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -