Closed gestern closed 9 years ago
Correct PUBLICPATH
, without $
echo Meta::factory($page)->js('jquery', PUBLICPATH.'js/jquery-latest.min.js');
Thanks @butschster, right now PUBLICPATH
contains absolute path on a web server, like /var/www/.../public/
but it doesn't have to be, I'd like to get /public/
. Is it possible?
BASE_URL . 'public/'
You can create new plugin, create file init.php
and there place code like this https://github.com/KodiCMS-Kohana/demo-site/blob/master/init.php#L4
define('PUBLIC_URL', BASE_URL . 'public/');
Thank you for your support.
According to
bootstrap.php
:$PUBLICPATH
should be/public/
, but it is not working as supposed when I tried to invoke inside of my layout:/
. Code:Is there any chance to get right value of
/public
folder through$<something>
?