CakePhp 3 Xml and Basic Auth

2015-11-23 Thread kalbarsky
Hi guys, I have a weird problem when trying to acces an XML file with Basic Authentication enable. When i try to acces the url to retrieve JSON, all work as intended: browser ask username & password. Successfull auth give me the json, auth failed = json with status 401. Same Url but in

Re: XML output

2015-07-13 Thread John Andersen
Take a look in the CakePHP book 2.x at this location http://book.cakephp.org/2.0/en/views/json-and-xml-views.html#using-a-data-view-with-view-files The solution is written in the "class XmlView" section :) Enjoy, John On Tuesday, 30 June 2015 16:43:25 UTC+3, Juan Ezquerro LLanes wrot

XML output

2015-06-30 Thread Juan Ezquerro LLanes
I'm using cake 2.x, how can i use _rootNode for custom xml output? I would like to delete the labels. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups &qu

Read XML data and show into Menu

2014-09-10 Thread Abhijeet Chougule
I am not getting the idea .. how to do this plz urgently send me the solution... -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe

Re: XML Parsing Error in Google Shopping Feed

2014-09-09 Thread José Lorenzo
Read about XML CDATA, this will help you http://stackoverflow.com/questions/2784183/what-does-cdata-in-xml-mean On Monday, September 8, 2014 7:53:15 PM UTC+2, Rafael Queiroz wrote: > > Hi, > > I'm trying Google Shopping feed in my app, i using Cake 2.2.5, > parseExtension

XML Parsing Error in Google Shopping Feed

2014-09-08 Thread Rafael Queiroz
Hi, I'm trying Google Shopping feed in my app, i using Cake 2.2.5, parseExtensions and RequestHandler respondAs XML. The sitemap.xml is perfect but feed.xml returned XML Parsing Error: undefined entity. The content i'm using is example_feed.xml from Google Shopping (copie

Re: How to convert this php array into xml?

2014-08-21 Thread Stephen S
I had some issues initially with this, I've taken a method from one of my shells and stripped it down to something basic with a multidimensional array. http://pastie.org/private/6ljulcnwc7dqwsxcpqdjbq Maybe if you try using $xmlObject = Xml::build(array('response' => $It

How to convert this php array into xml?

2014-08-21 Thread Sam
I am using cakephp v2.5. I would like to convert an array into xml. The array looks like this; $Items = array( (int) 0 => array( 'Item' => array( 'id' => '2' ) ), (int) 1 => array( 'Item' =&

Parse RSS/xml data using cakephp XML Lib (Cake 1.3.X).

2014-07-20 Thread Ravi Saxena(Nethues)
$data= trim(file_get_contents($url)); App::import('Xml'); $xml = new Xml($data); // This converts the Xml document object to a formatted array $xmlAsArray = Set::reverse($xml); // Or you can convert simply by calling toArray(); $xmlAsArray = $xml->

Re: How to get URL parameters in cakephp with URL that ends with xml?

2014-06-04 Thread euromark
Duplicate of http://stackoverflow.com/questions/24033937/extracting-url-parameters-in-cakephp-with-url-that-ends-with-xml Am Mittwoch, 4. Juni 2014 11:41:56 UTC+2 schrieb Sam: > > I would like to pass URL parameters in cakephp with URL that ends with xml > like below; > > h

Re: How to get URL parameters in cakephp with URL that ends with xml?

2014-06-04 Thread Jeremy Burns : Class Outfit
Have a look at http://book.cakephp.org/2.0/en/development/routing.html#Router::parseExtensions On 4 Jun 2014, at 10:41, Sam wrote: > I would like to pass URL parameters in cakephp with URL that ends with xml > like below; > > http://localhost/cp251/controller/api_get_info?page

How to get URL parameters in cakephp with URL that ends with xml?

2014-06-04 Thread Sam
I would like to pass URL parameters in cakephp with URL that ends with xml like below; http://localhost/cp251/controller/api_get_info?page=1.xml The controller function looks like this; public function api_get_info(){ if($this->RequestHandler->responseType() =

RE: (Web Service) Using XML to Output HTML into my website

2014-05-28 Thread Ricardo Vieitez
Hello, I guess that you can parse the XML file using PHP and output that as HTML. For example: http://blog.teamtreehouse.com/how-to-parse-xml-with-php5 http://www.php.net/manual/en/book.xml.php Since you’re using CakePHP, the “right” way is using a DataSource that does this conversion. You can

Re: (Web Service) Using XML to Output HTML into my website

2014-05-28 Thread Fernando Negrotto
Hi, What about moving that data to an array and then use that array to show the information in html? Something as follow: $xml=Xml::build('YOUR XML URL'); $hotelFares = $xml->xpath('HotelFares_PATH_IN_XML'); You can even use Xml::toArray() to convert your object into an a

View come from XML file

2014-05-28 Thread arvind yadav
Hi, We have created an XML file and need to show view to using that XML file and XSLT file. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP"

(Web Service) Using XML to Output HTML into my website

2014-05-28 Thread NHGDESIGN
gt; > 2014-05-30 > 2014-05-31 > > > FakeID > FakePassWord > > USD > true >xmlns="http://www.softur.com.ar/wsbridge/budget.xsd";> > 1 > > > > > > > > I am runn

CakePHP 3.0-dev3 Xml Request Handling

2014-05-22 Thread mark_story
For those reading at home, reuben opened an issue and that issue has been fixed. -mark -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubs

CakePHP 3.0-dev3 Xml Request Handling

2014-05-20 Thread Reuben
Hi I'm wondering what the correct method of serializing models for XML output should be? After getting XML request routing working, via explicitly specifying xml in the Router::parseExtensions() call, I'm getting an error when doing a serialize on a paginated model. The error is

Re: Generate XML using controller and force it to sent as download

2014-01-02 Thread Reuben
UTC+10, Willem wrote: > > Still haven't figured this out. Is this at all possible with CakePHP? I > can't imagine it would not be possible. > > thanks > > > > > On Thursday, December 19, 2013 5:16:50 PM UTC+1, Willem wrote: >> >> Hi, >> &g

Re: Generate XML using controller and force it to sent as download

2014-01-02 Thread Willem
Still haven't figured this out. Is this at all possible with CakePHP? I can't imagine it would not be possible. thanks On Thursday, December 19, 2013 5:16:50 PM UTC+1, Willem wrote: > > Hi, > > Goal: I have a button on a page. When user clicks it should generate a X

Generate XML using controller and force it to sent as download

2013-12-20 Thread Willem
Hi, Goal: I have a button on a page. When user clicks it should generate a XML file and make it download (instead of opening in browser window). Cake version: 1.3 So I create a HTML link like this: link( __('Generate XML file', true), > array('action'=>&#x

XML-RPC DataSource - client for Wordpress

2013-07-10 Thread Eduardo Moreira
I'm searching for an example or tutorial on how to implement a Xml-rpc client for Wordpress using the cakephp datasource. Someone has any example or tutorial to help me? Thank you. Eduardo Barbosa Moreira *Eng. Mecatrônico :: Programador Java* -- Like Us on FaceBook https://www.faceboo

File download from Soap Resonse (binary from xml)

2013-05-17 Thread LDSign
Hi Ive a working soapclient now. So far so good :) In the response I am getting a binary string as a object (php5 Soapclient class). NowI would like to extract this binary-object and offer a option to display or download it. What is the best way to do this with cake? I have already tried the b

Re: Format my XML output in CakePHP

2013-02-05 Thread Rafael Rabelo
roject' => array( 'id' => '2', ) ) ) And the one which is cited in the documentation for XML (http://book.cakephp.org/2.0/en/core-utility-libraries/xml.html#transforming-an-array-into-a-string-of-xml) is: array( 'projects

Re: Parse XML string as PHP Array

2013-02-02 Thread majna
Try http://book.cakephp.org/2.0/en/development/rest.html#accepting-input-in-other-formats So, by following http://book.cakephp.org/2.0/en/development/rest.html#the-simple-setup //In app/Config/routes.php...Router::mapResources('seasons'); Router::parseExtensions(array(&#x

Parse XML string as PHP Array

2013-01-24 Thread Mariano C.
->set('output', $output); } $this->render('generic_response');} The code works pretty well, but as I wrote in the snippet above I consider the first line of the controller really ugly, so, the question is: How can I parse XML string as PHP Array? -- Like Us o

Re: Format my XML output in CakePHP

2013-01-23 Thread Jonathan Sundquist
public function index() { > $output = $this->Player->find('all'); > $this->set(array( > 'output' => $output, > '_serialize' => array('output') > )); > $this->render('generic_response

Format my XML output in CakePHP

2013-01-23 Thread Mariano C.
'output' => $output, '_serialize' => array('output') )); $this->render('generic_response'); } and the generic_response is an XML view that look like this: $output)); echo $xml->asXML(); The resulting XML is: 2

Re: XML doctype

2012-11-28 Thread lowpass
Unfortunately, this ability was left out of Cake's XML class, which is just a wrapper for returning either a SimpleXML or DOMDocument object. The latter's doctype property is read-only. In order to have a doctype one needs to jump through some hoops: http://pointbeing.net/weblog/2009/0

Re: Adding multple records through REST XML web services

2012-11-28 Thread Tony Messias
You have to parse the XML to Cake's pattern and then you can use saveMany, for example. http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-savemany-array-data-null-array-options-array Att, -- Luiz Antonio S Messias Desenvolvedor Web <http://twitter.com/tonyzrp> @to

Adding multple records through REST XML web services

2012-11-27 Thread Sam
Dear CakePHP experts, I have an add() record function that is used as a REST web service via XML. The code is very simple. Something like below; $this->Object->create(); $this->Object->save($this->request->data); The limitation is that this function can only add one record

Re: XML doctype

2012-11-27 Thread Chetan Patel
echo $this->Xml->header(); // generates: You can pass in a different version number and encoding type as parameters of the header method. echo $this->Xml->header(array('version'=>'1.1')); // generates: -- Thanks & Regards Chetan Patel -- Like

XML doctype

2012-11-27 Thread technobulka
How to add doctype after **? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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 u

xml tag with one attribute and one value

2012-11-01 Thread kevin.ncbible
Hello ... and thank you so very much for assisting! The core libraries > utilities > xml documentation seems to imply that I can return the value of a tag's text by using '@' as the key. See following, straight from the documentation: === arra

Re: xml format problem

2012-10-15 Thread Robert Gravel
Still cant figure it out so I "hard coded" the xml. I see in cake 2.xx that there are some methods for this. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Goo

Re: xml format problem

2012-10-14 Thread Robert Gravel
I do not need the extra CDATA markup . I only need the and open and close tags along with my text -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" g

Re: xml format problem

2012-10-14 Thread lowpass
> Thank you! > > > but after trying (see below) I can't get that output. Is there a way to do > this? > > > echo $this->Xml->header(); > echo $this->Xml->serialize($response); > ?> > > > > > and > > echo $this->Xml

xml format problem

2012-10-14 Thread Robert Gravel
Hello i am using 1.3 I am trying to get this format from my array. array( 'Response' => array( 'Sms' => 'Thank you!', ) ) Thank you! but after trying (see below) I can't get that output. Is there a way to do this? Xml->hea

Tutorial to receive data from xml web services?

2012-09-26 Thread heohni
Hi, I wouldlike to learn and understand how to receive data from a xml webservice. But I googled for hours and couldn't find any good explanation. Most of the links I found were talking about how to send data out as XML. But I am looking for getting the data to print them into my view.

Re: How can controller action function distinguish whether URL ends with .xml or not?

2012-09-14 Thread Yasir Arafat Hasib
Hello, It may help you. Check http://arafats.info/cakephp-auth-setup/ Thanks Arafat On Sat, Sep 15, 2012 at 4:26 AM, Sumit Srivastava < sumitsrivastava.aniwebdesi...@gmail.com> wrote: > *hey* please tell me how to make login page for admin in cake php i am a > newbie so dont know much... > > I

Re: How can controller action function distinguish whether URL ends with .xml or not?

2012-09-14 Thread Sumit Srivastava
*hey* please tell me how to make login page for admin in cake php i am a newbie so dont know much... I have made a table as "user" name with email pass and id fields. I have made user.php page and user_controller.php page and view/user/login.ctp file *model/user.php page* array( 'kosher'

Re: How can controller action function distinguish whether URL ends with .xml or not?

2012-09-14 Thread thatsgreat2345
am creating some web services using cakephp with XML. When user visit a > URL, cakephp is smart enough to detect the URL extension and direct to the > correct view folder. For example, if URL ends with .xml, view is directed > to the xml folder. My problem comes with the controller. If

Re: How can controller action function distinguish whether URL ends with .xml or not?

2012-09-14 Thread Lightee
Thank you very much. It works! On Friday, September 14, 2012 3:40:56 PM UTC+8, johnny wrote: > > From what i remember this should do the trick, in your controller action > > if ( $this->RequestHandler->isXML()) { > > // do some xml specific code > > } > > Ch

Re: How can controller action function distinguish whether URL ends with .xml or not?

2012-09-14 Thread johnny
>From what i remember this should do the trick, in your controller action if ( $this->RequestHandler->isXML()) { // do some xml specific code } Check out the documentation on Request Handling for more details. http://book.cakephp.org/2.0/en/core-libraries/components/request-hand

How can controller action function distinguish whether URL ends with .xml or not?

2012-09-13 Thread Lightee
Dear Cakephp gurus, I am creating some web services using cakephp with XML. When user visit a URL, cakephp is smart enough to detect the URL extension and direct to the correct view folder. For example, if URL ends with .xml, view is directed to the xml folder. My problem comes with the

XML->to_array() no longer works with html

2012-09-07 Thread Chris Thompson
Somewhere between 2.0.1 and 2.2.2 the Utility/Xml class lost the ability to consume and html string and output it as an array. Obviously this is an Xml class and I was asking it to work with HTML, but does anyone know if CakePHP has a class to do this still (turn html to array)? -- You

Re: XML export basics

2012-09-05 Thread lowpass
It's a small point, but I'd suggest putting this in your model. It's generally best to put as much in the model as possible. I've been working on XML export destined for InDesign so if you have any questions feel free to contact me directly. I'm no expert -- it'

Re: XML export basics

2012-09-04 Thread kevin.ncbible
Andras: Thank you! That was exactly what I needed, inserted at the top of the controller page. I do appreciate your help. On Tuesday, September 4, 2012 5:49:26 PM UTC-7, Andras Kende wrote: > > Try to add: > > App::uses('Xml', 'Utility'); > > Andras K

Re: XML export basics

2012-09-04 Thread Andras Kende
Try to add: App::uses('Xml', 'Utility'); Andras Kende http://www.kende.com On Sep 4, 2012, at 4:11 PM, kevin.ncbible wrote: > Hello ... and thank you for being willing to offer your time and expertise to > help me! > > My ultimate goal is to take the data

XML export basics

2012-09-04 Thread kevin.ncbible
Hello ... and thank you for being willing to offer your time and expertise to help me! My ultimate goal is to take the data from one of my models and export it as an xml file (that I can then import into Adobe InDesign). I've read the article "XML" under "Core Libraries,

Re: REST, Xml::fromArray() and find('all')

2012-08-31 Thread Alexandre Leprêtre
ray('Order.account_id' => $accountId) > )); > $response = $orders; > $this->set(compact('response')); > } > } > > *app/View/Orders/xml/fetch.ctp* > $xml = Xml::fromArray(array('orders' => $orders)); > echo $xml->asXML(); > >

Re: REST, Xml::fromArray() and find('all')

2012-08-28 Thread Ryan Willis
I can confirm this issue. The Xml class does not play nice with the array structure generated by the model find method when multiple records are returned. Due to the time sensitive nature of my task, I opted to use JSON rather than debug a core utility class. That said, I would certainly love

REST, Xml::fromArray() and find('all')

2012-08-23 Thread Alexandre Leprêtre
one so far: *app/Controller/OrdersController.php* loadModel('Account'); $this->Account->id = $accountId; $orders = $this->Order->find('all', array( 'conditions' => array('Order.account_id' => $accountId) )); $response = $orders;

Re: XML does not work anymore (changed from one server to another)

2012-06-27 Thread heohni
I solved this by using a php.ini file with this content: allow_url_fopen = On > > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To uns

Re: Send XML as parameter on a POST request

2012-06-25 Thread darkangel
Actually, it worked with $data = $this->request->input(); Thanks On Friday, June 22, 2012 7:44:22 PM UTC-6, Justin Edwards wrote: > > > > Or > > $data = $this->request->input('Xml::build', array('return' => 'domdocument'))

Re: Send XML as parameter on a POST request

2012-06-22 Thread Justin Edwards
Or $data = $this->request->input('Xml::build', array('return' => 'domdocument')); On Fri, Jun 22, 2012 at 8:42 PM, Justin Edwards wrote: > $this->request->data > > > On Fri, Jun 22, 2012 at 5:24 PM, darkangel wrote: > >> I a

Re: Send XML as parameter on a POST request

2012-06-22 Thread Justin Edwards
$this->request->data On Fri, Jun 22, 2012 at 5:24 PM, darkangel wrote: > I already made the POST request but I dont know how to "catch it" and save > it to the database. > > I intend to save an XML content to a TEXT column. Could you guide me > please? > > -

Re: Send XML as parameter on a POST request

2012-06-22 Thread darkangel
I already made the POST request but I dont know how to "catch it" and save it to the database. I intend to save an XML content to a TEXT column. Could you guide me please? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP

How to post with xml file?

2012-06-06 Thread 88
Hi, I want to post xml file to another site,I don't know that. I try to make a sample, But that's a "post request". Anyone that can give me an example on how to make coding? :Sample $root = ''; $xml = new SimpleXMLElement($root); $xml->addChild('id',

How to post with xml file?

2012-06-06 Thread 88
Hi, I want to post xml file to another site,I don't know that. I try to make a sample, But that's a "post request". Anyone that can give me an example on how to make coding? :Sample $root = ''; $xml = new SimpleXMLElement($root); $xml->addChild('id',

XML does not work anymore (changed from one server to another)

2012-06-01 Thread heohni
Hi! I just have the problem, that I do extract from a xml feed and display it in a view. It works fine on server1 but not on server2. I get this error message: 2012-06-01 11:02:08 Warning: Warning (2): SimpleXMLElement::__construct(http://www.domain.com/?feed=rss2) [simplexmlelement

Re: XML Issues

2012-05-27 Thread lowpass
arse the output. I don't understand why you would want to output XML for your add action, though. On Sun, May 20, 2012 at 11:26 AM, Cara wrote: > I am trying to write what should be a simple API using CakePHP's REST > with XML. > > The code I have is very basic, still not wo

Re: uploading XML file into database

2012-05-23 Thread luca capra
Il 23/05/2012 15:52, Teji ha scritto: hello guyz.. is there any way to upload xml file to database. how can we upload xml files's data into database. plz give me example. thankx in advance. You could save it as a text or a binary -- Our newest site for the community: CakePHP

uploading XML file into database

2012-05-23 Thread Teji
hello guyz.. is there any way to upload xml file to database. how can we upload xml files's data into database. plz give me example. thankx in advance. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

XML Issues

2012-05-20 Thread Cara
I am trying to write what should be a simple API using CakePHP's REST with XML. The code I have is very basic, still not working. I realize it is very likely a simple thing like file extension or path to file, but I am very new to REST and limited when using XML. any help would be gr

Re: XML DataSource or solution

2012-03-30 Thread digioz
Hello Carlos, I have a similar requirement, and was not able to find an XML data source anywhere. The closest I have seen to one is this one, which is half finished (and also dual data source which is not what I need): http://ask.cakephp.org/questions/view

XML or Text based Data Source?

2012-03-30 Thread digioz
Hello All, I have a small application I wish to write that requires storing data to either XML files or Plain Text files. I am therefore searching for either an XML or a Text Data Source for CakePHP 2.1, and was surprised that I am not able to find such Data Sources. Can anyone shed some light

Re: Problem with loading xml data

2012-03-27 Thread heohni
Can I push this up? I still need your help, guys! Am Montag, 26. März 2012 09:34:44 UTC+2 schrieb heohni: > > Hi, > > within a helper class I would like to call this xml > > App::uses('Xml', 'Utility'); > App::uses('AppHelper', '

Problem with loading xml data

2012-03-26 Thread heohni
Hi, within a helper class I would like to call this xml App::uses('Xml', 'Utility'); App::uses('AppHelper', 'View/Helper'); class SuggestHelper extends AppHelper { function suggest($keyword){ $keyword = urlencode(trim($keyword)); $x

Re: Send XML as parameter on a POST request

2012-03-01 Thread lowpass
That's not a POST request, it's GET. For really long data, it's better to send it as an actual POST. On Wed, Feb 29, 2012 at 1:00 PM, darkangel wrote: > Hi, I'm getting started with Cake and I'm developing a REST web service but > have some troubles. I need to

Re: Cake v2 how to parse a xml file?

2011-12-13 Thread euromark
its actually App::uses('Xml', 'Utility'); (which can be found out looking into the core files) its also mentioned here: http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html and did you try to read the book? http://book.cakephp.org/2.0/en/core-utility-libraries/xm

Cake v2 how to parse a xml file?

2011-12-13 Thread heohni
Hi, I came from this article: http://bakery.cakephp.org/articles/fahad19/2008/08/26/parsing-xml-files-with-cakephp But under v2 everything is so new to me. And I never workd with cake and xml before, so I am a bloddy beginner in this: App::import('Xml'); should be now App::uses(&

XML->serialize() with CDATA?

2011-12-08 Thread Eric Blanpied
Hello, I've been exporting Cake data arrays as XML using the XML helper's serialize(), and then using that to import into other Cake apps, and it makes a nice way to exchange data between our set of app servers. Now, however, I'm dealing with data that would be best wrapped in

xml parsing error

2011-10-21 Thread jovial
I am getting the following error {"DTOCollection":[],"ErrorCollection":[{"ErrorCode": 80,"FriendlyErrorMessage":"Requested XML format is not correct!"}],"IsResultTrue":false,"IsSuccess":false}in the following portion o

amchart + CakePHP Xml Serialize

2011-09-06 Thread Hugo M
Hi, I'm using amchart to make graphics, I need to generate an XML like this: -0.307 -0.168 -0.073 -0.027 -0.251 But: $parsed = array( 'chart'=>array( 'graphs'=>array( array(

Re: how to convert data from controller to xml format in view

2011-07-25 Thread Matt Murphy
Good find! On Mon, Jul 25, 2011 at 8:17 PM, taq wrote: > this is answer > > http://www.ninjacodermonkey.co.uk/2010/11/cakephp-array-to-xml-from-within-controller/ > > On Jul 26, 6:56 am, taqman filler wrote: > > hello I'm new of cake > > I need snippet to dis

Re: how to convert data from controller to xml format in view

2011-07-25 Thread taq
this is answer http://www.ninjacodermonkey.co.uk/2010/11/cakephp-array-to-xml-from-within-controller/ On Jul 26, 6:56 am, taqman filler wrote: > hello I'm new of cake > I need snippet to display data form controller in xml format > I  know is use xml helper but I don't underst

how to convert data from controller to xml format in view

2011-07-25 Thread taqman filler
hello I'm new of cake I need snippet to display data form controller in xml format I know is use xml helper but I don't understand example in book some body can example to teach me pls -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check o

Xml to array problem

2011-06-21 Thread damia...@gmail.com
Hi I've prablem with Set::reverse. I load this xml and function return array with 3 nodes of 4. I don't know what is going on. This is pressing matter I need help. Sorry for my english http://www.w3.org/2001/XMLSchema-instance"; width="624"

XML at both client and server side

2011-05-09 Thread Bhawna
into it. Many reports are part of the same application which brings in set of records(typically few records to few hundreds) for the criteria entered by user. I am wondering how does XML come into picture. Is it worth spending efforts in creating schemas and then XML files, to format data read

Re: Cake 1.2 problem with XML files in plugin vendors folder

2011-04-29 Thread Jamie
mie On Apr 29, 7:49 am, lsenft wrote: > There isn't any code.  Its just a plain static xml file.  When I put > an image, css or js file into vendors folder I can access it with a > url like /plugin_name/img/myimage.jpg.  When I try to access files of > other types I get the myfile.e

Re: Cake 1.2 problem with XML files in plugin vendors folder

2011-04-29 Thread cricket
On Fri, Apr 29, 2011 at 10:49 AM, lsenft wrote: > There isn't any code. Then I guess you're just imagining this error then. Well, I'm happy this has all been sorted out. Have a nice day. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new Cake

Re: Cake 1.2 problem with XML files in plugin vendors folder

2011-04-29 Thread lsenft
There isn't any code. Its just a plain static xml file. When I put an image, css or js file into vendors folder I can access it with a url like /plugin_name/img/myimage.jpg. When I try to access files of other types I get the myfile.extController could not be found error. I get the impre

Re: Cake 1.2 problem with XML files in plugin vendors folder

2011-04-28 Thread cricket
On Thu, Apr 28, 2011 at 12:30 PM, lsenft wrote: > I would like to load an XML file from a plugin vendors folder.  I get > the following error: > > Error: myfile.xmlController could not be found. > > Is there a way to serve xml files from a plugin's vendors folder? What&#

Re: xml parser now what

2011-04-28 Thread cricket
On Thu, Apr 28, 2011 at 10:36 AM, Janu wrote: > Hi > > I am getting different xmls and after parsing I want them to be pushed > to database. Is there an easy way to accomplish that. Is there a > database to xml mapping tool available for cakephp. You can turn the XML into an a

xml parser now what

2011-04-28 Thread Janu
Hi I am getting different xmls and after parsing I want them to be pushed to database. Is there an easy way to accomplish that. Is there a database to xml mapping tool available for cakephp. thanks -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out

Cake 1.2 problem with XML files in plugin vendors folder

2011-04-28 Thread lsenft
I would like to load an XML file from a plugin vendors folder. I get the following error: Error: myfile.xmlController could not be found. Is there a way to serve xml files from a plugin's vendors folder? Thank you, Levi -- Our newest site for the community: CakePHP Video Tutorials

Re: generating xml templet using cakephp

2011-04-13 Thread Tilen Majerle
http://book.cakephp.org/view/1485/Xml -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/4/14 rakeshyadav rakeshyadav > Hi All, > >How to generate a XML template dynamically and parse it. > > > Thanks in advance, > > Rakesh yadav > > -- >

generating xml templet using cakephp

2011-04-13 Thread rakeshyadav rakeshyadav
Hi All, How to generate a XML template dynamically and parse it. Thanks in advance, Rakesh yadav -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their

Re: Problem with xml- cakephp

2011-03-19 Thread AD7six
On Mar 19, 11:03 am, Stephen wrote: > The example you posted as to what you would like it to look like isn't > really xml at all, just a single xml tag with html inside. > > Really with XML you would write the data like how it is output already, then > you would have so

Re: Problem with xml- cakephp

2011-03-19 Thread Stephen
The example you posted as to what you would like it to look like isn't really xml at all, just a single xml tag with html inside. Really with XML you would write the data like how it is output already, then you would have something else be it a website or a piece of software which can parse

Problem with xml- cakephp

2011-03-14 Thread rakeshyadav rakeshyadav
HI All, i am trying to generate XML template on my report generated data. the stuff related to generate XML i keep in view page as below. $store['st']['store_type']); App::import('Helper', 'Xml'); App::import('

Re: Array formatting from XML web service using Set::combine

2011-02-27 Thread Greg Skerman
=> 'jane' ) ) ); On Sun, Feb 27, 2011 at 11:34 PM, Greg Skerman wrote: > I'm having a bit of trouble with Set::combine when using it to deal with > xml converted into an array. > > I am using the XML utility library, then Set::reverse() to flip it from an

Array formatting from XML web service using Set::combine

2011-02-27 Thread Greg Skerman
I'm having a bit of trouble with Set::combine when using it to deal with xml converted into an array. I am using the XML utility library, then Set::reverse() to flip it from an object into an array for easy traversal The problem is that if a child element only contains 1 record, it is form

Re: XML Helper Documentation needed

2011-02-18 Thread Stephen
Hi Sam On 18 February 2011 16:13, Sam Sherlock wrote: > Here I have adjusted NCM's code as it did not use the File class > > - S > > Thanks for the amendment, I will update my blog post accordingly and my file in the previous project. I agree the File class is better than using fopen, my fopen

Re: XML Helper Documentation needed

2011-02-18 Thread Sam Sherlock
Here I have adjusted NCM's code as it did not use the File class and was outputting the generated xml to the file twice (one after the other) also I have amended to have a id which is Stephen22 $xmlData = array( 'person' => array( 'id' =>

XML Helper Documentation needed

2011-02-18 Thread Matthew McNaughton
Greetings all, I was wondering if someone could point me to a more detailed description of the XML Helper and how to produce a desired xml file from a php array. I've gone through the following documentation http://book.cakephp.org/view/1485/Xml http://book.cakephp.org/view/1473/XML

Re: XML DataSource or solution

2011-02-12 Thread Carlos Paparoni
the entire file, unless needed) function __construct($config = array()) { parent::__construct($config); //Modification to read the XML file and populate the $records array: App::import('Core', 'Xml'); App::import('Cor

Re: XML DataSource or solution

2011-02-12 Thread Ryan Schmidt
=> 1, 'name' => 'Alabama', 'abbr' => 'AL'), > array('id' => 2, 'name' => 'Alaska', 'abbr' => 'AK'), > array('id' => 3, 'name' => 

Re: XML DataSource or solution

2011-02-11 Thread Carlos Paparoni
#x27;), array('id' => 2, 'name' => 'Alaska', 'abbr' => 'AK'), array('id' => 3, 'name' => 'Arizona', 'abbr' => 'AZ') ); } ?> The issue is that i

  1   2   3   4   5   >