Re: Smarty not filtering

2009-04-20 Thread blckspder

Can you post some code to give an example of what is happening?

On Apr 20, 3:07 pm, timtrice  wrote:
> I've followed any one of the few tutorials in the Bakery on installing
> and using Smarty.  However, even though my application's not
> generating errors (debug = 3) my variables inside the {} are not
> executing.  it's all showing up as text.  Anyone happen to have a
> quick solution?  I've Googled "smarty not filtering", "smarty not
> parsing" among other things and nothing seems to explain what the deal
> is.
>
> Thanks
--~--~-~--~~~---~--~~
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: Foreign Characters

2009-03-21 Thread blckspder

John,

Thanks for the help. I see the errors in the mysql database using
query browser and I also see the error in outlook and gmail when the
results are emailed.

I basically keep all the results in an array. I then loop through the
array and do mysql_real_escape_string(). I tried nesting the
utf8_encode function and the htmlspecialchars function into the escape
function like so:

mysql_real_escape_string(utf8_encode($array['item'])); or
mysql_real_escape_string(htmlspecialchars($array['item']));

On Mar 21, 3:41 pm, John Andersen  wrote:
> That is fine, so the problem is not in the html!
>
> In what way are you looking at the data and seeing the erroneous
> representation (in another page, using a tool or what)?
>
> How are you processing your data before saving them in the database?
> And when you are retrieving them from the database?
> And before presenting the data in html?
>
> Enjoy,
>    John
>
> On Mar 21, 9:28 pm, blckspder  wrote:> I setting it to 
> utf in the meta tag
>
> > 
>
> [snip]
--~--~-~--~~~---~--~~
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: Foreign Characters

2009-03-21 Thread blckspder

I setting it to utf in the meta tag




On Mar 21, 2:50 pm, John Andersen  wrote:
> Can you show us the headers you are setting in order to specify the
> utf-8 encoding?
>
> When a form is being submitted, the form will use the page's encoding,
> so that must be set correctly to utf-8.
>
> Enjoy,
>    John
>
> On Mar 21, 5:14 pm, blckspder  wrote:
>
> > Hello,
>
> > I have a form that people from all different countries use. I see to
> > have a problem with foreign characters. my page is in utf-8, i tried
> > using the php function utf8_encode and htmlspecialchars but everything
> > comes out jumbled when foreign characters are used.
>
> > here is an example of what I see in the database and in the email:
> > arabacı
>
> > That example is when I use htmlspecialchars, The database is utf-8 as
> > well.
>
> > If anyone can help I would appreciate it.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Foreign Characters

2009-03-21 Thread blckspder

Hello,

I have a form that people from all different countries use. I see to
have a problem with foreign characters. my page is in utf-8, i tried
using the php function utf8_encode and htmlspecialchars but everything
comes out jumbled when foreign characters are used.

here is an example of what I see in the database and in the email:
arabacı

That example is when I use htmlspecialchars, The database is utf-8 as
well.

If anyone can help I would appreciate it.
--~--~-~--~~~---~--~~
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: Youtube API

2009-03-19 Thread blckspder

http://code.google.com/apis/youtube/2.0/developers_guide_protocol.html


google has some great documentation at the above link. In cake though
you are going to want to put the api file into the vendors folder in
your app directory and then use App:import() to import the class. One
thing I learned using the picasa api with cake is that by putting th
api in the vendors folder all of the includes and requires in the api
code are all off
for example:
the original require in the api may look something like this:
require_once 'Zend/some folder/some file.php';

well the Zend folder is not in the webroot directory therefore you
need to go through the whole api and change all of the includes and
requires to something like this:
require_once '../vendors/'Zend/some folder/some file.php';

You can do a mass find and replace in programs like dreamweaver and I
think eclipse. If you do not use either or the program your using
doesn't support a mass find and replace then you have to go through
each file and update the require_once statements manually and that can
be quite tedious.

I hope I cleared some things up for you.

On Mar 19, 10:08 am, roycakephp  wrote:
> Hello,
>
> Can someone please tell me how you can use the youtube API in
> combination with CakePhp?
> I can't find anything about it on the internet.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Where should I place xml files?

2009-03-15 Thread blckspder

Hello,

I have an xml file I want to parse. where should I keep the file? Is
there a specific location or can it be placed anywhere? Please let me
know and thank you.

--~--~-~--~~~---~--~~
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: xml parser removing html entities

2009-03-13 Thread blckspder

After working with several people on the irc channel. We found that
there is a bug with versions of libxml2 before version 2.7.3. Also in
my case there seems to be a problem with the php 5.2.6 that is bundled
for Fedora 10.

I still haven't gotten everything to work correctly. I may look at a
different OS though. Hope this info helps someone.

On Mar 11, 6:26 pm, Antoni  wrote:
> Hello,
>
> I am using the provided xml class to parse my rss feed from my blog.
> But when I parse the xml and spit out the array all of the html
> entities have been removed.
>
> here is what a link looks like: a href="http://picasaweb.google.com/lh/
> photo/05ihu8FUhDHgVl9LmOx3kw?
> authkey=Gv1sRgCLr4g4iGjZCvgwEfeat=embedwebsite"
>
> It is missing the < (<) and > (>) signs.
>
> and here is the php code:
> function index() {
>                 App::import('Xml');
>
>                 // antoni-s blog
>                 $aBlog = "http://antoni-s.blogspot.com/atom.xml";;
>
>                 // now parse it
>                 $antoni_xml =& new XML($aBlog);
>                 $antoni_xml = Set::reverse($antoni_xml); // this is what i 
> call
> magic
>
>                 // see the returned array
>                 //debug($antoni_xml);
>
>                 //set the array for antoni-s to news view
>                 $this->set('news',$antoni_xml);
>
>                 // antoni-tech blog
>                 $tBlog = "http://antoni-tech.blogspot.com/atom.xml";;
>
>                 // now parse it
>                 $tech_xml =& new XML($tBlog);
>                 $tech_xml = Set::reverse($tech_xml); // this is what i call 
> magic
>
>                 // see the returned array
>                 //debug($tech_xml);
>
>                 //set the array for antoni-s to news view
>                 $this->set('tech',$tech_xml);
>
>                 }//end function
>
> If someone could help I would appreciate it. Thanks

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---