always use arrays for internal links

On 10 Okt., 17:35, roktok <[email protected]> wrote:
> I am struggling with Html helper in cake 1.3. The url method seems to
> reference different relative roots:
>
> <?php
> echo "app: " . APP;
> echo "www_root: " . WWW_ROOT;
> echo "images: " . IMAGES;
> echo "url_test_relative: " . $this->Html->url('/albums/show/');
> echo "url_test_absolute: " . $this->Html->url('/albums/show/',true);
> ?>
>
> In MAMP I get the following paths:
>
> app: /Applications/MAMP/htdocs/tunds/
> www_root: /Applications/MAMP/htdocs/tunds/webroot/
> images: /Applications/MAMP/htdocs/tunds/webroot/img/
> url_test_relative: /tunds/albums/show/
> url_test_absolute:http://localhost:8888/tunds/albums/show/
>
> When I use the script online, I get the following paths instead:
>
> app: /www/htdocs/w00c9135/htdocs/tunds/
> www_root: /www/htdocs/w00c9135/htdocs/tunds/webroot/
> images: /www/htdocs/w00c9135/htdocs/tunds/webroot/img/
> url_test_relative: /albums/show/
> url_test_absolute:http://tunds.server.com/albums/show/
>
> I expected to get the same relative url in MAMP ('/albums/show/'), but
> it generates ('/TUNDS/albums/show/"), while all the other paths seems
> to work fine. How can I fix this issue?
>
> Thank you all.
> Best Heiko

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to