Friday, January 31, 2014

Re: constant for base app URL?

Do you mean the APP_DIR constant?


These constants can be useful when working with files for example, when needing an absolute path APP is good, or even WWW_ROOT / WEBROOT_DIR when uploading images to a public directory.

Just pr() each of these constants and if you'll see the output... If you're not sure what the use is, it's likely you don't need to use it right now.

p.s. I often use these constant with Configure::write() to define new paths for use within my application.


On 31 January 2014 06:54, Sayam Abbas <abbassayam@gmail.com> wrote:
what is the use of APP_URL costant?

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.



--
Kind Regards
 Stephen Speakman

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: