Log message #114095

# At Username Text
# Aug 9th 2008, 17:12 markstory pyite: there isn't much documentation on creating new db drivers as they aren't made that often.
# Aug 9th 2008, 17:12 pyite mark: ok
# Aug 9th 2008, 17:11 pyite mark: i imagine others have had a reason to...
# Aug 9th 2008, 17:11 markstory so look at dbo_mysql / dbo_source
# Aug 9th 2008, 17:11 pyite mark: yeah, i think i still like that plan. anywhere i can read more about doing that?
# Aug 9th 2008, 17:11 pyite to read/store/etc. kinda kills half the benefits of Cake's forms and relationships, though. :(
# Aug 9th 2008, 17:11 markstory pyite: you can, just have to make a datasource for it.
# Aug 9th 2008, 17:11 pyite just use my own commands
# Aug 9th 2008, 17:11 aaron50x hi everyone, can anyone tell me how may I access a model from an element? I'm doing $this->Model, but it doesn't work
# Aug 9th 2008, 17:10 pyite i might just not use a model then
# Aug 9th 2008, 17:10 pyite poop
# Aug 9th 2008, 17:10 pyite still wish i could just generate XML and use it as-if it was a DB...
# Aug 9th 2008, 17:10 pyite mark: yeah, that was my "fallback" plan
# Aug 9th 2008, 17:10 pyite mark: it is php w/ another http engine, yes.
# Aug 9th 2008, 17:10 markstory sqlite?
# Aug 9th 2008, 17:10 pyite Matt: I would too :-) if i didn't have the limitation of not having enough room to have a mysql or other instance running
# Aug 9th 2008, 17:10 markstory and your using php / apache?
# Aug 9th 2008, 17:09 pyite the key is that the software must remain relatively light as it is going onto an embedded processor chip in a small device (256MB memory)
# Aug 9th 2008, 17:09 Matt1 pyite: I would agree with markstory
# Aug 9th 2008, 17:09 pyite Matt: I want others to be able to use my softtware to make their own programs, so they should not need to have any knowledge of the changes i've made to the db layer theoretically
# Aug 9th 2008, 17:09 markstory probably better and easier to have a db table, that can be transformed into xml if need be.
# Aug 9th 2008, 17:09 pyite Matt: i am using Cake to create a set of libraries/APIs that interface with a program that stores it's configs in XML.
# Aug 9th 2008, 17:08 markstory well if it has to supplant all the model database functions. you need to make an xml datasource.
# Aug 9th 2008, 17:08 Matt1 pyite: why are you doing that ?
# Aug 9th 2008, 17:08 pyite or database type within the model i guess
# Aug 9th 2008, 17:08 pyite essentially i believe this requires making one's own model...
# Aug 9th 2008, 17:08 pyite mark: but in making one i want to preserve functionality within cake that is usually reliant on knowing the DB schema. Such as auto-generation of form fields, where cake "knows" what type of field is in a form
# Aug 9th 2008, 17:07 pyite markstory: i agree. i am intending to make, if i can not find
# Aug 9th 2008, 17:07 markstory you need to make /find an xml datasource.
# Aug 9th 2008, 17:07 pyite markstory: that's ok, it's important. maybe you can point me to a doc i can read more about?
# Aug 9th 2008, 17:07 Matt1 pyite[A]: yes. though could be that there is a better solution for your need
# Aug 9th 2008, 17:07 markstory pyite: yes. but not easily.
# Aug 9th 2008, 17:05 pyite[A] Hello. I have a situation where I am using CakePHP and want to have a model that has no tables, but Cake is aware of a potential table structure. For example, I want Cake to act as if I was using a database, but when read/write operations come around, I would actually substitute routines to read/write from flat XML files. Is that possible?
# Aug 9th 2008, 16:59 markstory sure.
# Aug 9th 2008, 16:59 cpierce markstory: may i pm you?
# Aug 9th 2008, 16:59 markstory Configure::write('debug', 0);
# Aug 9th 2008, 16:59 Matt1 Configure::write('debug', 0);
# Aug 9th 2008, 16:58 cpierce $this->debug = 0;
# Aug 9th 2008, 16:58 cpierce Matt1: how do i do that
# Aug 9th 2008, 16:56 markstory to turn down debug.
# Aug 9th 2008, 16:56 Matt1 cpierce: you can set the debug to 0 for just that one action