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

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

sql server - SQL Query - Delete duplicates if more than 3 dups? -

c# 3.0 - Issue with getting 2 chars from string using indexer -