We can add the new image in cakePHP just like we did html.
but we have different tag for it.
We need html helper that is already provided by the cakePHP but have to be included first.
For adding an image
echo $this->html->image(imagename, array('alt'=>'image'));
Similarily including css can be as easy as the image.
It will assume that the css in the webroot folder.
echo $this->Html->css('forms');
We can also include the css file form any loaded plugin.
To include app/Plugin/DebugKit/webroot/css/toolbar.css
echo $this->Html->css('DebugKit.toolbar.css');
0 Comment(s)