Re: Problem with Html Helper basepath in MAMP

2010-10-10 Thread roktok
using arrays unfortunately does not fix the problem. I changed the
code to:

Html-
>url(array('controller'=>'albums','action'=>'show'));
echo "url_test: " . $this->Html-
>url(array('controller'=>'albums','action'=>'show'),true);
?>

I still get the same results as described it in my first post.

Any other ideas?

Best
Heiko


On 10 Okt., 21:54, euromark  wrote:
> always use arrays for internal links
>
> On 10 Okt., 17:35, roktok  wrote:
>
> > I am struggling with Html helper in cake 1.3. The url method seems to
> > reference different relative roots:
>
> >  > 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:/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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Problem with Html Helper basepath in MAMP

2010-10-10 Thread euromark
always use arrays for internal links

On 10 Okt., 17:35, roktok  wrote:
> I am struggling with Html helper in cake 1.3. The url method seems to
> reference different relative roots:
>
>  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:/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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Problem with Html Helper basepath in MAMP

2010-10-10 Thread roktok
I am struggling with Html helper in cake 1.3. The url method seems to
reference different relative roots:

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:/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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Problem with Html Helper basepath in MAMP

2010-10-10 Thread roktok
I am struggling with Html helper in cake 1.3. The url method seems to
reference different relative roots:

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:/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.antoniaschroeder.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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Problem with html helper

2007-12-13 Thread dr. Hannibal Lecter

Which version of Cake would this be?

In 1.2.x branch, function aliases like ife() seem to be deprecated:
http://groups.google.com/group/cake-php/browse_thread/thread/14f2b68e6dd039a/61b340f0070c66cc?lnk=gst

Hope that helps,
dr. H.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Problem with html helper

2007-12-13 Thread Unite

Fatal error: Call to undefined function ife() in /*/public_html/cake/
libs/view/helpers/html.php on line 1020

I get this error. I am using PHP ver 5. Any suggestions as to what can
be wrong?
Thanks
Wade
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---