Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
html->link() and html tags
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
kicaj  
View profile   Translate to Translated (View Original)
 More options 4 Nov, 10:23
From: kicaj <ki...@kdev.pl>
Date: Wed, 4 Nov 2009 02:23:28 -0800 (PST)
Local: Wed 4 Nov 2009 10:23
Subject: html->link() and html tags
I must build link like this:
<a href="#"><span>text</span></a>
How?

I using: $html->link('<span>'. __('text', true) .'</span>'), '#'); but
this is not works!


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Andersen  
View profile   Translate to Translated (View Original)
 More options 4 Nov, 10:39
From: John Andersen <j.andersen...@gmail.com>
Date: Wed, 4 Nov 2009 02:39:11 -0800 (PST)
Local: Wed 4 Nov 2009 10:39
Subject: Re: html->link() and html tags
Add array('escape'=>false) to your link, so that your html code
<span></span> is not turned into html entities

If it doesn't help, please show the html of your created link!

Enjoy,
   John

On Nov 4, 12:23 pm, kicaj <ki...@kdev.pl> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexandru Ciobanu  
View profile   Translate to Translated (View Original)
 More options 4 Nov, 10:41
From: Alexandru Ciobanu <ics.cake...@gmail.com>
Date: Wed, 04 Nov 2009 12:41:57 +0200
Local: Wed 4 Nov 2009 10:41
Subject: Re: html->link() and html tags
On 11/4/2009 12:23 PM, kicaj wrote:
> $html->link('<span>'. __('text', true) .'</span>'), '#');

- you're not echoing this;
- you have a syntax error there;
- you're escaping the link title;

For CakePHP 1.2 use:
echo $html->link('<span>'. __('text', true) .'</span>', '#', array(),
false, false);

For CakePHP 1.3 use:
echo $html->link('<span>'. __('text', true) .'</span>', '#',
array('escape' => false), false);

http://api.cakephp.org/class/html-helper#method-HtmlHelperlink


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kicaj  
View profile   Translate to Translated (View Original)
 More options 4 Nov, 14:31
From: kicaj <ki...@kdev.pl>
Date: Wed, 4 Nov 2009 06:31:25 -0800 (PST)
Local: Wed 4 Nov 2009 14:31
Subject: Re: html->link() and html tags
Thanks guys!

On Nov 4, 11:41 am, Alexandru Ciobanu <ics.cake...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google