Ty Alexandru for your help.I will use a little different block of code as i
tested it and it works fine.Beow is my code.where i take each geoname's
fields and save them in my db.
for ( $i = 1; $i <= 4; $i += 1) {
/** total results**/
$root=$xml->children[0]->children[0]->name;
On 07/14/2009 04:29 PM, Paulos23 wrote:
>
> How i can take these data from the array[] and print them like this
> for example?
> name:Barcelona
> lat:...
> lng...
>
Given $i is the name of your array.
foreach($i['Geoname'] as $parent){
foreach($parent as $key => $child){
Hi peeps,
I have spent much time in finding the proper solution for my
problem.To be more specific i am parsing an xml document from an
external site(using httpSocket) which contains some data.I have
managed to parse it and when i do pr($parsed_xml) or debug
($parsed_xml) i get an array which cont
mscdex wrote:
>$post = $this->Post->getNormalViewData();
Sorry, that should be: $post = $this->Post->getNormalViewData($id);
You get the idea ;-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP"
ing-json-in-cakephp-12/
On Feb 10, 11:38 pm, Alfredo Quiroga-Villamil
wrote:
> This should be simple, yet for some reason can't find how to do it.
>
> I need to render XML.
>
> What is the correct way to accomplish this?
>
> Thanks in advance,
>
> Alfredo
--~--~---
Alfredo Quiroga-Villamil wrote:
> This should be simple, yet for some reason can't find how to do it.
>
> I need to render XML.
>
> What is the correct way to accomplish this?
I use XML in my Cake application and here is what I've done:
In my routes.php,
eed it in the future and if this is even the most recommended
approach for this kind of situations.
Thanks in advance,
Alfredo
On Tue, Feb 10, 2009 at 11:38 PM, Alfredo Quiroga-Villamil
wrote:
> This should be simple, yet for some reason can't find how to do it.
>
> I need to
This should be simple, yet for some reason can't find how to do it.
I need to render XML.
What is the correct way to accomplish this?
Thanks in advance,
Alfredo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
and in my layout file
> (xml.xml) i try to set the header content type, but it won't change.
> i also see a white space that is entered on the page before the
> content_for_layout is returned.
> i'm not sure if one problem is leading to the other. but i need some
> sort of
also see a white space that is entered on the page before the
content_for_layout is returned.
i'm not sure if one problem is leading to the other. but i need some
sort of way to render xml in a view.
please let me know if you may have run over this speed bump or if i can
provide more info on the is
10 matches
Mail list logo