Monday, December 1, 2008

Re: XML backend instead of Relational DB backend

> 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.... If I
were going to attempt to use an xml backend for a small/simple app, I
would write my own find*, save, and read operations inside each model.
That approach, IMHO would be less work that making a non-cake app, and
far less work than writing your own relational XML-DB class for cake.

Also, as I recall (it's been a while for me), php4 support for xml is
not very friendly. So the use of cake's xml helper classes will be
very useful to you.

> i have to use PHP 4.x.x and there is no database backend
That's harsh... Could u maybe use SQLite. SQLite doesn't require a
server, or any configuration. Just a copy of php with SQLite enabled.
Just a thought.

good luck

On Nov 30, 5:05 am, Matthew <matthewpanayio...@gmail.com> wrote:
> 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 the data
> in xml files.
>
> So i'm wondering:
>
> 1. Does CakePHP support an XML backend out-of-the-box in the same way
> that it supports relational DBs?
> 2. If it doesn't support it out of the box how much work is it to
> modify it - Is it more hassle than it's worth (it's a quite small
> project for which i would be using the CakePHP framework)
> 3. What would i have to look at extending?
>
> From looking at the DOCS/API it doesn't look to me like there's out-of-
> the-box support for this but i might be missing something.
>
> 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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: