Witam, chciałem zdefiniować w/w stałe, ale coś chyba przeoczyłem.
defined("RESOURCES_PATH")
|| define("RESOURCES_PATH", realpath(dirname(__FILE__)));
defined("LIBRARY_PATH")
|| define("LIBRARY_PATH", realpath(dirname(__FILE__) . '/library'));
defined("TEMPLATES_PATH")
|| define("TEMPLATES_PATH", realpath(dirname(__FILE__) . '/templates'));
defined("VIEWS_PATH")
|| define("VIEWS_PATH", realpath(dirname(__FILE__) . '/views'));
To jest plik config.php w folderze resources. Natomiast gdy wszystko startuje, to otrzymuję takiego url'a (co mnie z reszta nie dziwi) : nazwa.pl/home/fierce/..../views. W jaki sposob zrobić to poprawnie?
@Edit
index.php znajduje się w takiej relacji z folderem config: ../public_html/