cakephp - how to get my application directory name -
My URL is ....
I want to get "myApplication" What is the important word to get the value?
I think you want:
$ this- & Gt; Webroot
or
$ this-> Base
or in your controller
$ this-> Here
refer to the definition of this variable.
Comments
Post a Comment