Re: get site url in cakephp

2011-07-11 Thread chris
Not sure if this is entirely what you want, but the constant FULL_BASE_URL is available to give you the sites URL such as www.mysite.com On Jul 3, 3:31 pm, Tilen Majerle tilen.maje...@gmail.com wrote: try with Router::url('/', true); -- Lep pozdrav, Tilen Majerlehttp://majerle.eu 2011/7/3

get site url in cakephp

2011-07-03 Thread Jerin
Hi , how to get site url in controller and view.The same built in function available in CI.My objective is to get localhost/ project_name in development mode and domainname.com in production in both view and controller. Is it possible in Cake. I can write like this. $data =

Re: get site url in cakephp

2011-07-03 Thread Tilen Majerle
try with Router::url('/', true); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/7/3 Jerin jerin.kalexan...@gmail.com Hi , how to get site url in controller and view.The same built in function available in CI.My objective is to get localhost/ project_name in development mode and