Question

I have a page with some HTML in it. and I need to set the src property to the location of pictures.

How can I achieve that with Kohana PHP ?

Thanks.

Was it helpful?

Solution

It depends on where the images are located. In a standard Kohana install, the files are located in your document root and are accessible with the url::file() call, eg:

<?php echo url::file("images/foo.gif") ?>

would refer to:

http://example.com/images/foo.gif

Reference: http://docs.kohanaphp.com/helpers/url#file

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top