Re: How to echo special character in cakephp????

2010-02-04 Thread Hanif
Thanks for your help.

I got the solution  how to return xml data form cakephp application.

Sul:
> you have to set debug mode to 0 (zero) in you app/config.core.php file.
>Then you can return xml data.
>  if  you set debug mode 2 then cakephp does not return xml data





On Dec 15 2009, 10:39 pm, euromark  wrote:
> h() escapes special characters
>
> so use
>
> echo h($string) to get "my name here "
>
> On 15 Dez., 15:42, Giedrius Rekasius 
> wrote:
>
> > On Mon, 2009-12-14 at 19:00 -0800, Hanif wrote:
> > > Dear everyone,
>
> > > I want to return XML data  form controller. The format is like
>
> > > controller code:
>
> > > function info(){
>
> > > $xml ="my name here ";
> > > echo $xml;
> > > }
>
> > > This does not print any result (blank result). While it get special
> > > character then it filter all value.
>
> > Try to do it this way:
>
> > function info(){
>
> > $xml ="my name here ";
>
> > echo '';
> > echo $xml;
> > echo '';
>
> > }
>
> > --
> > Regards,
> > Giedrius Rekasius

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: How to echo special character in cakephp????

2009-12-15 Thread euromark
h() escapes special characters

so use

echo h($string) to get "my name here "


On 15 Dez., 15:42, Giedrius Rekasius 
wrote:
> On Mon, 2009-12-14 at 19:00 -0800, Hanif wrote:
> > Dear everyone,
>
> > I want to return XML data  form controller. The format is like
>
> > controller code:
>
> > function info(){
>
> > $xml ="my name here ";
> > echo $xml;
> > }
>
> > This does not print any result (blank result). While it get special
> > character then it filter all value.
>
> Try to do it this way:
>
> function info(){
>
> $xml ="my name here ";
>
> echo '';
> echo $xml;
> echo '';
>
> }
>
> --
> Regards,
> Giedrius Rekasius

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: How to echo special character in cakephp????

2009-12-15 Thread Giedrius Rekasius
On Mon, 2009-12-14 at 19:00 -0800, Hanif wrote:
> Dear everyone,
> 
> I want to return XML data  form controller. The format is like
> 
> controller code:
> 
> function info(){
> 
> $xml ="my name here ";
> echo $xml;
> }
> 
> This does not print any result (blank result). While it get special
> character then it filter all value.

Try to do it this way:

function info(){

$xml ="my name here ";

echo '';
echo $xml;
echo '';

}

--
Regards,
Giedrius Rekasius

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


How to echo special character in cakephp????

2009-12-14 Thread Hanif
Dear everyone,

I want to return XML data  form controller. The format is like

controller code:

function info(){

$xml ="my name here ";
echo $xml;
}

This does not print any result (blank result). While it get special
character then it filter all value.

Now please help me how to print such data.

Regards,
Hanif

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