The reason APP_PATH is empty can be found in your main index.php file
It contains something like this:
if (function_exists('ini_set')){
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR .
CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS);
define('APP_PATH', null);
Nazdar,
28. 1. 2007, Ryan napisal:
> Try: define('FILES_DIR',WWW_ROOT.'files'.DS.'my_upload_dir'.DS);
Thanks, WWW_ROOT constant is OK.
--
Michal Bilcik
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP
Try: define('FILES_DIR',WWW_ROOT.'files'.DS.'my_upload_dir'.DS);
HTH,
Ryan Rose
http://www.digiwize.com
On Jan 28, 9:05 am, Michal Bilcik <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I read in Cake's Global Constants And Functions chapter, section 3:
> http://manual.cakephp.org/chapter/constants
>
Hello,
I read in Cake's Global Constants And Functions chapter, section 3:
http://manual.cakephp.org/chapter/constants
APP_PATH: absolute path to the application's app directory.
But when I use (in controller) this constant it is empty:
echo APP_PATH;
another constant, for example CONTR