Re: XML backend instead of Relational DB backend

2008-12-01 Thread php.baker
> 1. Does CakePHP support an XML backend out-of-the-box: No. > 2. How much work is it to modify it use an XML backend: Much more work that > creating the rest of your app. > 3. What would i have to look at extending? Cake does have some handy classes for working with xml data..

Re: JSON, AJAX or XML

2008-12-01 Thread Sam Sherlock
> > AJAX, JSON or XML? user which you feel comfortable with - cake can assist you in each case - see parseExtensions theres a form plugin for jquery google malsup form plugin - there also a validate plugin for jquery if you validating phone numbers email address etc then regex in java

JSON, AJAX or XML

2008-12-01 Thread cronet
eturning the geo coordinates or "false". But which format should this be (or is the more less to develop)? AJAX, JSON or XML? How can I parse this view using javascript (with jquery)? Regards, Cronet --~--~-~--~~~---~--~~ You received this message because you a

XML backend instead of Relational DB backend

2008-11-30 Thread Matthew
Hi, I'm looking at the feasibility of CakePHP for a project i'm working on. I've worked through the blog tutorial and it looks fine but unfortunately in the production environment that i'm working i have to use PHP 4.x.x and there is no database backend so I'm storing t

Re: How to apply permission to XML folder in webroot

2008-11-19 Thread bookme
Thanks Rob... I used .htpasswd and .htaccess and deny access outside world using a user name and password.. but my problem is that I am using XML file inside flash..so when ever flash is running it also require authenticationthat must be not Is there any solution for it ? On Nov 19, 6:39

Re: How to apply permission to XML folder in webroot

2008-11-19 Thread Rob
I agree with David, if you really don't want anybody to have direct access to it, don't put it in the webroot. That said, you can have files in a particular folder in your web site that you deny access to by using the .htaccess file. You deny the whole directory, specific files, or even set it u

Re: How to apply permission to XML folder in webroot

2008-11-19 Thread bookme
Can I do it providing permission chmod -R 711 to this folder on linux server... I try it...it's working but don't know is it secure or not? Please tell me what should I do ? On Nov 17, 12:43 pm, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote: > You'd do this on the server side by setting file s

Re: How to apply permission to XML folder in webroot

2008-11-16 Thread David C. Zentgraf
okme wrote: > > Hi, > > I am working on a flash application using XML. Flash file and XML is > inside webroot folder. I want to apply permission on XML file so > that no body can access XML files because these XML files contains > some secrete data. > > Please tell me how can

How to apply permission to XML folder in webroot

2008-11-16 Thread bookme
Hi, I am working on a flash application using XML. Flash file and XML is inside webroot folder. I want to apply permission on XML file so that no body can access XML files because these XML files contains some secrete data. Please tell me how can I apply permissions on webroot/flash/xml

Re: Any one Familiar with XML/SWF charts usage in Cakephp

2008-10-16 Thread Daehee Park
emaps Then one thing I was stuck on was not modifying enough of the variables in XML/SWF. I thought it was just xml_source but I was suffering from tunnel vision and forgot about movie, src, and library_path. I pointed xml_source to a charts.xml routing configured by parseExtensions in the Router file

Re: Any one Familiar with XML/SWF charts usage in Cakephp

2008-10-16 Thread Sam Sherlock
ldn't > post if I didn't think it really was helpful (that is, suggest > something completely different). > > Unless you are using the paid-for version of that charting script (XML/ > SWF), it may be easier to get "Open Flash Chart" (http:// > teethgrinder.co.uk/op

Re: Any one Familiar with XML/SWF charts usage in Cakephp

2008-10-16 Thread BrendonKoz
I hate when people do exactly what I'm going to do, but I wouldn't post if I didn't think it really was helpful (that is, suggest something completely different). Unless you are using the paid-for version of that charting script (XML/ SWF), it may be easier to get "Ope

Re: Any one Familiar with XML/SWF charts usage in Cakephp

2008-10-16 Thread [EMAIL PROTECTED]
I have not done exactly that but I have done the same type of thing with my own Flash-applications and even a java-applet You have the view for the page displaying the chart. All this does is embed the chart and create the link to the chart xml. >From the sample.html it would be altering

Re: Any one Familiar with XML/SWF charts usage in Cakephp

2008-10-16 Thread Sam Sherlock
If you make your controller export xml to a location app/webroot/xml/ then make an action to gather then you can have flash access the exported file. set the base param of the flash object to you webroot, setting the file passed to flash as something like xml/exported-data.xml I have made a

Re: Any one Familiar with XML/SWF charts usage in Cakephp

2008-10-16 Thread Daehee
My issue is.. I have the controller and views working to properly output xml data at a particular URL using routing. However, XML/SWF needs a physical file location for the xml_source being passed through FlashVars. How to go about doing this? On Oct 16, 10:08 am, Daehee <[EMAIL PROTEC

Re: Any one Familiar with XML/SWF charts usage in Cakephp

2008-10-16 Thread Daehee
I have the same question. Did you figure this out? On Sep 4, 3:06 am, vibhor <[EMAIL PROTECTED]> wrote: > Hello all, > > I am looking to integrate the XML/SWF charts(http://www.maani.us/xml_charts/ > ) feature in my cakephp application. I have read Chris Hartjes

Re: XML return type in HABTM queries

2008-09-10 Thread GTM
Ok ... don't do what I did - if you're passing data to an XML view, MAKE SURE it's in the form of an associative array. He'res the break down of my problem. In my controller, I did $result = $this->Post->Tag->Find. That of course gave me a $result that looked some

XML return type in HABTM queries

2008-09-10 Thread GTM
Has anyone run across a situation with XML HABTM query results where the XML differs from the std results?I have a Post, Tags scenerio. I'm using a RequestHandler setup so /post/index.xml returns: ... That's good. But when I do a $this->Post->Tags->Find I get:

Re: Any one Familiar with XML/SWF charts usage in Cakephp

2008-09-04 Thread vibhor
Anyone please?? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more

Any one Familiar with XML/SWF charts usage in Cakephp

2008-09-04 Thread vibhor
Hello all, I am looking to integrate the XML/SWF charts( http://www.maani.us/xml_charts/ ) feature in my cakephp application. I have read Chris Hartjes's tutorial ( http://www.littlehart.net/atthekeyboard/2006/09/26/tutorial-integrating-phpswf-charts-with-cakephp/ ) but he is using the PH

Re: Class XML :: Error on function toArray

2008-08-27 Thread Dardo Sordi Bogado
trac.cakephp.org On Wed, Aug 27, 2008 at 7:04 AM, MBmax <[EMAIL PROTECTED]> wrote: > > It's also happening with Set::reverse($xml) > > ;-( > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: Class XML :: Error on function toArray

2008-08-27 Thread MBmax
It's also happening with Set::reverse($xml) ;-( --~--~-~--~~~---~--~~ 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 t

Class XML :: Error on function toArray

2008-08-27 Thread MBmax
Heey Cakers... i have found a error in the XML class of CakePHP. I've the following xml data 2 1 1 2 when i parse this data with the xml class to a array $xml = new XML($data); $array = $xml->toArray(); i got a this array back Array ( [Lst]

Class XML :: Error on function toArray

2008-08-27 Thread MBmax
Heey Cakers... i have found a error in the XML class of CakePHP. I've the following xml data 2 1 1 2 when i parse this data with the xml class to a array $xml = new XML($data); $array = $xml->toArray(); i got a this array back Array ( [Lst]

Re: XML dbo driver

2008-07-21 Thread Marcin Domanski
okok maybe not weeks ;) you can use the buil in XML class.. but still using mysql and/or sqlite is cheap (as in maintainance etc) -- Marcin Domanski http://kabturek.info On Mon, Jul 21, 2008 at 5:51 PM, James K <[EMAIL PROTECTED]> wrote: > > It's going to take you wee

Re: XML dbo driver

2008-07-21 Thread James K
It's going to take you weeks to make a cake compatible XML "dbo driver" when you could just use MySQL and be done in 30 minutes... Making a little admin panel for your client to use to update the values is also a hell of a lot more user friendly than asking them to FTP into the si

Re: XML dbo driver

2008-07-21 Thread Balanza
;t wanna use a db beacause data to be treated are not so dynamic, they could be considered as "customizable settings". And I also want my product to be easily managed by my customer - even hosting details and that kind of stuff - and I think a text file, like an xml file is, should be the be

XML dbo driver

2008-07-21 Thread Balanza
Hi, I'm creating a very small website that shows my customer's informations and allows him to manage the contents to be shown. To do that, in order to keep costs low, I'd like to use a simple xml file instead of using a proper db, with its hosting costs and problems to be manag

Re: XML dbo driver

2008-07-20 Thread Marcin Domanski
ebsite that shows my customer's > informations and allows him to manage the contents to be shown. To do > that, in order to keep costs low, I'd like to use a simple xml file > instead of using a proper db, with its hosting costs and problems to > be managed. I thought I coul

Re: Parsing XML from a model

2008-07-09 Thread Renan Gonçalves
); > xml_set_character_data_handler( > $this->parser, > array(&$this,"tag_data") > ); > On Wed, Jul 9, 2008 at 9:36 AM, nile <[EMAIL PROTECTED]> wrote: > > In one of my models, I'm trying to pa

Parsing XML from a model

2008-07-09 Thread nile
In one of my models, I'm trying to parse an XML file using SAX as follows: $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, "startTag", "endTag"); startTag and endTag are methods in my model. When the code run

Re: Using Cake's core Xml class in a controller method?

2008-06-10 Thread avairet
Thanks a lot grigri! I never think to check out tests files to understand usage... And sometimes, the logic to call a Cake's core lib is different, for example if I want to call "extract()" from Set class, I can do a static call... but for Xml I can't! BR On 10 juin, 1

Re: Using Cake's core Xml class in a controller method?

2008-06-10 Thread grigri
Check out the Xml test files (cake/tests/cases/libs/xml.test.php) for usage * Use App::import('Core', 'Xml'); * You need to instanciate an Xml object; you can't call it statically (since you called it statically from inside your controller, the ` $this` references

Using Cake's core Xml class in a controller method?

2008-06-10 Thread avairet
Hi all, I'm trying to use the Xml class in a controller like that : public function MyMethod() { App::import('Xml'); $channel = 'http://www.mywebsite.com/my_web_services/channel.php? ste_id=123456'; $doc = Xml::load($channel); var_dump($doc); } But var_dump is n

Re: From sql query to XML

2008-06-09 Thread Smelly_Eddie
e actual view. Depending on the complexity of your models and desired xml strucutee you can iterate through the results and 'echo' in the fromat you want. echo ''; //<- 'root' element for each($persons as person){ echo ';' echo ''; echo ''

Re: From sql query to XML

2008-06-08 Thread Kurto
I'm begginer of cakephp, I don't know very much so i need a step by step help to produce an XML document, what I need to do in the controller and what in the view etc. Thks Kurto On 8 Giu, 20:33, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > > I haven'

Re: From sql query to XML

2008-06-08 Thread Dardo Sordi Bogado
> I haven't found any documentation for produce XML document in > cakePHP. > Someone can help me? How is producing XML in cake harder than producing XHTML ? > Thks Kurto > > > > --~--~-~--~~~---~--~~ You received this message beca

Re: From sql query to XML

2008-06-08 Thread Dardo Sordi Bogado
> I haven't found any documentation for produce XML document in > cakePHP. > Someone can help me? How is producing XML in cake harder than producing XHTML ? > Thks Kurto > > > > --~--~-~--~~~---~--~~ You received this message beca

From sql query to XML

2008-06-08 Thread Kurto
Hi everybody, I need to output an XML file from an sql query over an database table. Simply I execute the action $this->Person->findAll() for get all record of my table 'people' and I want to put the result in ad XML file. I haven't found any documentation for produce XM

Re: Howto: Cache external xml data in model

2008-06-03 Thread Dardo Sordi Bogado
http://api.cakephp.org/class_cache.html On Tue, Jun 3, 2008 at 7:57 PM, oleonav <[EMAIL PROTECTED]> wrote: > > I have a model which loads a external xml file. It would be nice if > the raw results or better the parsed array holding the data would be > cached for a couple of h

Howto: Cache external xml data in model

2008-06-03 Thread oleonav
I have a model which loads a external xml file. It would be nice if the raw results or better the parsed array holding the data would be cached for a couple of hours. So far i tried the following: children[0]->children[2]->children[0]->children; .

Re: XML trouble

2008-05-12 Thread cynic
Hey David, There's quite a few ways to get th data you're asking. If you're using PHP5 you can use SimpleXML (http://us2.php.net/simplexml) which would be really straight forward. Somewhere along the lines of $xml- >Response->Placemark->Point->coordinates or i

Re: XML trouble

2008-05-04 Thread ruxkor
the regex approach could be useful if you validate the xml against a DTD before parsing.. another approach would be using http://www.php.net/simplexml SimpleXML, it is really straightforward even if you are not familiar with typical SAX/DOM parsers! On May 4, 5:50 pm, Mike52 <[EMAIL PROTEC

Re: XML trouble

2008-05-04 Thread Mike52
You could get the value in a "quick-and-dirty" way by using a regex. The function below takes the xml data as a string and you pass it the name of the tag: function getTagValue($xmldata, $tag) { $pattern = "/<$tag>(.*)<\/$tag>/"; preg_ma

XML trouble

2008-05-04 Thread David
Hey folks, I'm fairly new to Cake, so bear with me. My question is about Cake's XML class: Specifically, I'm trying to parse an XML file like this: 723 Chestnut Street, Philadelphia, PA 19106 200 geocode 723 Chestnut St, Philadelphia

Re: Problem with the XML class

2008-04-28 Thread MarcS
thanks for the quick reply On Apr 28, 1:37 pm, nate <[EMAIL PROTECTED]> wrote: > This is in compliance with the W3C spec on parsing XML. It also comes > into play when a node's content contains both text and tags. However, > given the situation you described, perhaps an a

Re: Problem with the XML class

2008-04-28 Thread nate
This is in compliance with the W3C spec on parsing XML. It also comes into play when a node's content contains both text and tags. However, given the situation you described, perhaps an accessor method is in order. Open an enhancement ticket and I'll consider it. On Apr 28, 8:06

Problem with the XML class

2008-04-28 Thread MarcS
Hi everyone. I recently upgraded to the most recent version of cake and as expected a few things didn't work. There is one thing, however, which I really can't work out. A part of my application is parsing some XML data which looks pretty much like this

Re: XML Parsing Error: xml declaration not at start of external entity

2008-04-20 Thread Federico Rinaldi
le of days to track down... > > > > On Oct 31, 12:11 pm, seacloud9 <[EMAIL PROTECTED]> wrote: > > > XML Parsing Error: xml declaration not at start of external entity > > > Location:http://ihang10.com/rss/posts > > > Line Number 1, Column 2: >

Re: Xml and CAKE_ADMIN

2008-02-14 Thread [EMAIL PROTECTED]
I'm newbie in cake Can you make ma an example of this? On 5 Feb, 23:50, Adam Royle <[EMAIL PROTECTED]> wrote: > Webservices have been deprecated afaik in later versions because of > this confusion. If you upgrade to the latest 1.2 version you can use > Router::parseExtensions(

Re: Xml and CAKE_ADMIN

2008-02-05 Thread hellfish
I have upgraded and I've seen the examples but they all mention just the action.xml. What about when you have 1 or 2 parameters, where do you stick your .xml ? Is it like ...controller/action/param1/param2.xml ? I've tried this with no success. On 5 Feb, 22:50, Adam Royle <[EM

Re: Xml and CAKE_ADMIN

2008-02-05 Thread Adam Royle
Webservices have been deprecated afaik in later versions because of this confusion. If you upgrade to the latest 1.2 version you can use Router::parseExtensions('xml'); and then your URL would be: mysite.com/admin/controller/action.xml However, if you can't upgrade, maybe you

Re: Xml and CAKE_ADMIN

2008-02-04 Thread [EMAIL PROTECTED]
ther which url have I to use? > "http:www.mysite.com/xml/admin/controller/view" doesn't work > "http:www.mysite.com/xml/controller/admin/view" doesn't work --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: bug in xml

2008-02-03 Thread nate
Cake actually comes with a default XML template which includes a short- tags-compatible header, so you generally should not have to deal with this. On Feb 3, 1:20 pm, Howard Glynn <[EMAIL PROTECTED]> wrote: > This could be one of my favourite "bugs" that took me ages and ages

Re: bug in xml

2008-02-03 Thread Howard Glynn
This could be one of my favourite "bugs" that took me ages and ages to figure out a while ago. It's not a cake problem though. You probably need to switch off "allow short php" tags in your php.ini Problem is, the first line of your xml/action.ctp file is probably so

bug in xml

2008-02-01 Thread manuj
i have put some xml code in views/controller/xml/action.ctp, when I run this code http//servername/controller/action.ctp, it gives error due to blank charcters before starting of code --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Xml and CAKE_ADMIN

2008-01-18 Thread [EMAIL PROTECTED]
Hi I have configurated CakePHP with webservice and CAKE_ADMIN enable. If I use them separately they work perfectly. But If I would use then together which url have I to use? "http:www.mysite.com/xml/admin/controller/view" doesn't work "http:www.mysite.com/xml/controller/admi

Re: Working with XML-RPC

2007-12-21 Thread Serge Rodovnichenko
ost here? My e-mail is jrbasso under > gmail.com. > > Thanks. > > Juan Basso > > Serge Rodovnichenko escreveu: > > > I wrote a component, that uses an XML-RPC library from PEAR. > > > On Dec 19, 7:57 pm, Juan Basso <[EMAIL PROTECTED]> wrote: > >

Re: Working with XML-RPC

2007-12-20 Thread Juan Basso
You can send to me? Or post here? My e-mail is jrbasso under gmail.com. Thanks. Juan Basso Serge Rodovnichenko escreveu: > I wrote a component, that uses an XML-RPC library from PEAR. > > On Dec 19, 7:57 pm, Juan Basso <[EMAIL PROTECTED]> wrote: > > Hi, > > >

Re: Working with XML-RPC

2007-12-20 Thread Serge Rodovnichenko
I wrote a component, that uses an XML-RPC library from PEAR. On Dec 19, 7:57 pm, Juan Basso <[EMAIL PROTECTED]> wrote: > Hi, > > Anyone have worked with xml-rpc? Not for server, but to a client. My > application need get data under xml-rpc of others machines... > >

Working with XML-RPC

2007-12-19 Thread Juan Basso
Hi, Anyone have worked with xml-rpc? Not for server, but to a client. My application need get data under xml-rpc of others machines... Thanks. Juan Basso --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: Xml layout name

2007-12-05 Thread sum1kul
Try this as well: option 1: - turn on Router::parseExtensions(); in routes.php - use xml extension for url, then the defaut.ctp in xml folder will be used by cake. - more info http://groups.google.com/group/cake-php/msg/3baf7b8e7256aae1 option 2: the default.ctp only outputs xml declaration

Re: Xml layout name

2007-12-05 Thread jarmstrong
I believe that is so you can have the same layout name with different actual layouts. For instance layout='newsfeed' or 'productlist', you might want a Html, Rss, and XML output. Andreas-70 wrote: > > > I used this one and it works. > > $this->layoutPa

Re: Best way to handle ssl webservices when passing XML

2007-12-05 Thread gentleJuggernaut
thanks. I have used cURL, I will check out that other method. On Dec 5, 11:27 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Dec 5, 2007 11:25 AM, francky06l <[EMAIL PROTECTED]> wrote: > > > > > Maybe using Curl. There is Curl model on the bakery, I have used it to > > make http / https req

Re: Best way to handle ssl webservices when passing XML

2007-12-05 Thread francky06l
http://netevil.org/blog/2006/nov/http-post-from-php-without-curl Excellent, thanks Chris I will give a try ..! On Dec 5, 5:27 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Dec 5, 2007 11:25 AM, francky06l <[EMAIL PROTECTED]> wrote: > > > > > Maybe using Curl. There is Curl model on the ba

Re: Best way to handle ssl webservices when passing XML

2007-12-05 Thread Chris Hartjes
On Dec 5, 2007 11:25 AM, francky06l <[EMAIL PROTECTED]> wrote: > > Maybe using Curl. There is Curl model on the bakery, I have used it to > make http / https requests. No need for cURL, actually. Check out this link: http://netevil.org/blog/2006/nov/http-post-from-php-without-curl -- Chris H

Re: Best way to handle ssl webservices when passing XML

2007-12-05 Thread francky06l
Maybe using Curl. There is Curl model on the bakery, I have used it to make http / https requests. On Dec 5, 4:52 pm, gentleJuggernaut <[EMAIL PROTECTED]> wrote: > What is the best way using cakephp 1.2 to POST an XML string to a > webservice? I must be able to send the request to a

Best way to handle ssl webservices when passing XML

2007-12-05 Thread gentleJuggernaut
What is the best way using cakephp 1.2 to POST an XML string to a webservice? I must be able to send the request to an ssl server (https:). I have tried HttpSocket(); but it does not appear to work with https. Thx NSM --~--~-~--~~~---~--~~ You received this

Re: Xml layout name

2007-12-04 Thread Andreas
I used this one and it works. $this->layoutPath = 'xml'; $this->layout = 'default'; I'm wondering though why have they even bothered putting them into a folder in the first place? Thanks for the help! On Dec 4, 2:10 am, snowdog <[EMAIL PROTECTE

Re: Xml layout name

2007-12-03 Thread snowdog
Or you can set Router::parseExtensions('xml'), then you dont have to specify layout, cake will take care of it --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this

Re: Xml layout name

2007-12-03 Thread Grant Cox
Or actually, try: $this->layoutPath = 'xml'; $this->layout = 'default'; obviously that second line is optional - as 'default' is what should be used anyway. On Dec 4, 7:48 am, Grant Cox <[EMAIL PROTECTED]> wrote: > I expect it will work with >

Re: Xml layout name

2007-12-03 Thread Grant Cox
I expect it will work with $this->layout = 'xml'.DS.'default'; On Dec 4, 4:15 am, Andreas <[EMAIL PROTECTED]> wrote: > Hi > > I've been trying to use the xml layout but it's not going too well > since the layout file itself is located within a s

Xml layout name

2007-12-03 Thread Andreas
Hi I've been trying to use the xml layout but it's not going too well since the layout file itself is located within a subfolder called xml (xml/default.ctp) and I'm not sure how to reach it with $this->layout = '';? Andreas --~--~-~--~~~-

Re: xml parsing

2007-11-05 Thread cronet
Hi, I'm also running SimpleXML. It looked easier than the Cake XML Class. As Langdon Stevenson said, try it, if it fits your need, use it ;) Greetings On 2 Nov., 21:02, moesian <[EMAIL PROTECTED]> wrote: > Hi, > > I want to parse a few xml feeds and stick their conten

Re: xml parsing

2007-11-02 Thread Langdon Stevenson
Hi, > > I want to parse a few xml feeds and stick their contents into a > database. Whats the best way of doing this using cakephp? > > Can I use simplexml? If I can should I? > > Thanks alot --~--~-~--~~~---~--~~ You received this message be

xml parsing

2007-11-02 Thread moesian
Hi, I want to parse a few xml feeds and stick their contents into a database. Whats the best way of doing this using cakephp? Can I use simplexml? If I can should I? Thanks alot --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: XML Parsing Error: xml declaration not at start of external entity

2007-10-31 Thread Wayne Fay
takes is one space and your fun bus is up on blocks for RSS... Only > took a couple of days to track down... > > On Oct 31, 12:11 pm, seacloud9 <[EMAIL PROTECTED]> wrote: > > XML Parsing Error: xml declaration not at start of external entity > > Location:http://ihan

Re: XML Parsing Error: xml declaration not at start of external entity

2007-10-31 Thread seacloud9
AIL PROTECTED]> wrote: > XML Parsing Error: xml declaration not at start of external entity > Location:http://ihang10.com/rss/posts > Line Number 1, Column 2: > -^ > > All pages in my cakePHP install add one space at the beginning of > every document. It causes an overall foo

XML Parsing Error: xml declaration not at start of external entity

2007-10-31 Thread seacloud9
XML Parsing Error: xml declaration not at start of external entity Location: http://ihang10.com/rss/posts Line Number 1, Column 2: -^ All pages in my cakePHP install add one space at the beginning of every document. It causes an overall foobar on my rss feed. I have altered the layout

XML and XML-RPC

2007-10-23 Thread cronet
Hi there, i read that it is possible to handle XML Requests (or XML-RPC?) How can I request XML Data from a webservice? I tried something like this in my controller: function index() { uses('Xml'); $xmldata =& new XML('http://xmlserver/xml/request1'); } This is

Re: XML based ACL - Possibility?

2007-06-29 Thread gwoo
i would say performance and flexibility are the biggest concerns. Xml is nicely structured and the tree could work easily with ACL, but if you had a 100 records it might slow things down. Also, managing 100 records in an xml file may be annoying. That said, you could run some tests. I would

XML based ACL - Possibility?

2007-06-29 Thread Romiro
I was trying to re-learn the intricacies of ACL and Cake's implementation of it, when I ran across something in one of the tutorials that mentioned how XML, by default, is structured in a format that would best serve the needs of an ACL and it's tree. I was wondering if anyone has ever

Re: mod_rewrite and application/xhtml+xml

2007-04-20 Thread bej78729
g document. > > > The layout starts with: > > > "; ?> > > > http://www.w3.org/1999/xhtml"; > > xmlns:svg="http://www.w3.org/2000/svg";> > > > I can get a static page like this to render properly using a .xhtml > > file en

Re: mod_rewrite and application/xhtml+xml

2007-04-20 Thread AD7six
> > I can get a static page like this to render properly using a .xhtml > file ending. Apache sends the document as Content-Type: application/ > xhtml+xml and Mozilla renders the svg. > > One thought is to use mod_rewrite to change the Content-Type: > > I'm

mod_rewrite and application/xhtml+xml

2007-04-20 Thread bej78729
e document as Content-Type: application/ xhtml+xml and Mozilla renders the svg. One thought is to use mod_rewrite to change the Content-Type: I'm relatively new to mod_rewrite and the hack of .htaccess bedlow doesn't seem to work. RewriteEngine on RewriteRule(.*) - [T=ap

Re: XML output from cake controller/view

2007-04-02 Thread Jeremy Pointer
digital spaghetti wrote: > Instead of your method, check out this tutorial: > > http://bakery.cakephp.org/articles/view/2 > > Its an old article, but still works perfectly in Cake 1.2 > I had already tried that method i.e. created an xml layout with just header() and print(&

Re: XML output from cake controller/view

2007-04-02 Thread digital spaghetti
Instead of your method, check out this tutorial: http://bakery.cakephp.org/articles/view/2 Its an old article, but still works perfectly in Cake 1.2 Tane On 4/2/07, Jeremy Pointer <[EMAIL PROTECTED]> wrote: > > I'm trying to output an xml document but I seem to be getting a

XML output from cake controller/view

2007-04-02 Thread Jeremy Pointer
I'm trying to output an xml document but I seem to be getting a space character just before layout=false; and my view is: "); print(""); foreach ($rows as $row) print("".$row['table']['field'].""); print(""); ?> DEBUG

Re: XML, MySQL and Controllers question(s)

2007-02-26 Thread Christopher E. Franklin, Sr.
Okay. What I have done so far: Did a bit more research into the Model for handling the data format before inserting it into the database. This seems more logical since the component helps the controller with the flow of things, not formatting data. So, I moved my code to the Model and it works

XML, MySQL and Controllers question(s)

2007-02-26 Thread Christopher E. Franklin, Sr.
Hello, Sorry for this very long post but, I want to get what information I can out for these questions. Sorry for my "noobness" to cake. I guess the questions are simple really but, just want to make everything clear. I have an xml file that contains a lot of data that is extrac

Re: embeded swf movie loads xml

2007-02-20 Thread [EMAIL PROTECTED]
What about using an absolute path to the XML? Flash 8 & 9 allows use of a full URL with XML.Load as long as they don't cross-domains or cross-protocols. If you have to use relative paths, you could try adding a basepath () to the layout. I don't know if a Flash object respects t

embeded swf movie loads xml

2007-02-20 Thread Károly Kiripolszky
helo! i noticed an annoying thing while working on a layout with embeded flash menu. we use an external xml file to specify menu labels and links, so when the client want's to change sg, we don't have to bother with recompiling the swf. the site however is multilingual, so menu files

Re: Caching XML views

2007-02-17 Thread Jippi
If your on linux you can use this shell script to replace all short tags with full tags # script to replace short php tags /tmp/$$ mv -f /tmp/$$ $i done # remove accidentally doubled ones for i in `find public_html -type f|grep -e "\.php\|\.inc"`; do echo $i; sed "s/ /tmp/$$ mv -f /tmp/$$

Caching XML views

2007-02-17 Thread Nick Jones
Hi guys, I'm currently creating RSS feeds using a separate layout with header("Content-Type: text/xml"); inside of it, which all works fine and dandy. The problems occur when trying to push the code into my live environment which relies on caching due to heavy traffic. I

Re: Leading blank in XML

2007-01-17 Thread Dr. Tarique Sani
On 1/18/07, Preloader <[EMAIL PROTECTED]> wrote: Hello Tarique, thank you so much! What a studpid fault: Had a trailing blank after the "?>"-Tag in my XML component! A very common problem - that is way some people just omit the ?> tag in their source Glad that

Re: Leading blank in XML

2007-01-17 Thread Preloader
Hello Tarique, thank you so much! What a studpid fault: Had a trailing blank after the "?>"-Tag in my XML component! Thank's, Christoph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ca

Re: Leading blank in XML

2007-01-15 Thread Dr. Tarique Sani
On 1/15/07, Preloader <[EMAIL PROTECTED]> wrote: > Hmmm, anyone who knows where this leading blank comes from? No idea, but try putting a header() call in your code the error will show where the output started HTH Tarique -- = PHP App

Re: Leading blank in XML

2007-01-15 Thread Preloader
Hmmm, anyone who knows where this leading blank comes from? Thx, Christoph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubs

Leading blank in XML

2007-01-09 Thread Preloader
Hello bakers, I tried Cake's webservices routing. I want to generate XML interfaces for the use in Flash. I'm using the recent version of CakePHP 1.2 and the great XML helper for building the output. And here comes my problem: Cake seems to print out a single leading blank befo

Re: using csv files (import? convert to xml? any ideas?)

2007-01-04 Thread [EMAIL PROTECTED]
If it helps, I wrote a component for handing CSV files and put it on the Bakery, but it hasn't been published. The text is below: CSV (comma-separated values) is a simple format for storing data. As such, adding support for it in CakePHP is simple as well. Here we go... [h4]Exporting CSV[/h4] E

<    1   2   3   4   5   >