Answer the question
In order to leave comments, you need to log in
Kohana Am I referring to constants with paths correctly? And if not, how is it right?
Hello. I am writing a website on the Kohana framework. I want to access a file (picture). He has a way. I saved the path in the config file. In the script where I access the file (where its path is needed), I use the following code:
$config = Kohana::$config->load('/paths/user');
$path = $config['IMG_PATH'];
define('IMG_PATH', 'files/users/imgs');
return array(
'IMG_PATH' => IMG_PATH
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question