On Jan 2, 2007, at 2:22 PM, Veloz wrote:
I'm pretty new to Cake and have this question: is it possible to use
Cake's lower level database classes in the case that you do not
descend
your model from AppModel?
In other words, if you want to create a model class that does not
descend from AppModel, but still needs some database access support,
can you somehow use classes like DataSource and/or DboMysql?
This sounds like you want a class that doesn't have database access
but needs database access.
I'd write a model that extends the AppModel, then include your own
domain specific stuff additionally.
Does anyone know how to go about setting these up?
I think we are going to have some database access needs that may
not be
easy to express using Cake's ActiveRecord, so we are trying to figure
out how to still have our models access the database using Cake
classes
instead of interjecting our own connection managment code, etc.
Details? We might be able to better help if we knew why Cake's
existing setup doesn't work for you.
-- John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---