pk2k (2) [Avatar] Offline
#1
$view->baseUrl() returns wrong URL
Hi all,

if i call $view->baseUrl() in my view scripts, it dosen't returns the base url. instead i get "places/public/index.php". So the index.php is too much.

i use the downloaded code.


Any hints?

thank you,
paul
akrabat (479) [Avatar] Offline
#2
Re: $view->baseUrl() returns wrong URL
Which URL are you navigating to? Also which operating system/web server?

Regards,

Rob...
pk2k (2) [Avatar] Offline
#3
Re: $view->baseUrl() returns wrong URL
hi,
i solved the problem: I used the .htaccess from chapter 3.
So the rows
RewriteCond %{REQUEST_FILENAME} !-d
is missing.

I followed straight the book and there was no hint that i have to adapt the htacces. smilie

thanks,
paul
akrabat (479) [Avatar] Offline
#4
Re: $view->baseUrl() returns wrong URL
Glad you sorted it!

The book certainly keeps you on your toes! smilie

Regards,

Rob...