Skip to content

Commit 9184b6f

Browse files
authored
Add info about using file system paths for assets
1 parent 05aa0bf commit 9184b6f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,13 @@ echo $this->Html->image('logo.png', ['fullBase' => true]);
293293
echo $this->Html->css('bootstrap.css', ['fullBase' => true]);
294294
```
295295

296+
If you are enable to get URLs for assets working properly, you can
297+
try using file system paths instead for the assets.
298+
299+
```
300+
<img src="<?= WWW_ROOT ?>img/logo.png" />
301+
```
302+
296303
## Get header and footer on all pages
297304

298305
Here are a couple of CSS based solutions you can refer to for easily

0 commit comments

Comments
 (0)