Is it possible to install Kohana libraries for ORM in PHP without using the entire framework?

This removes the need to use any of the loader code You'll also need Kohana_Exception, the Database library (and appropraite driver), Kohana::config(), Kohana::auto_load(), Kohana::log() methods (search Database. Php for those) Kohana is a great MVC framework, but not really designed to be taken apart in chunks like that. You may want to also investigate Doctrine another ORM for PHP (that IS designed to be stand-alone).

This removes the need to use any of the loader code. You'll also need Kohana_Exception, the Database library (and appropraite driver), Kohana::config(), Kohana::auto_load(), Kohana::log() methods (search Database. Php for those).

Kohana is a great MVC framework, but not really designed to be taken apart in chunks like that. You may want to also investigate Doctrine, another ORM for PHP (that IS designed to be stand-alone).

Yup, this is correct. Just digging through the code to find what I need. It's slightly more difficult since the needed include files aren't "required" at the top, but no complaints when I get the free code.

– Zak Nov 3 '08 at 18:36.

It turns out that Kohana uses magic class loading so that if a defined class with an _Core extention doesn't exist as a class i.e. ORM_Core exists, but ORM doesn't, so Kohana will magically define an ORM class Since the package uses 100% magic class loading. In case anyone is interested, I'm documenting my finds here so everyone can find it later: From Kohana.

Php in the system directory: So it does an eval..

Zak, check Maintainable framework's ORM. framework.maintainable.com/mvc/3_model.p... Read thoroughly, I am sure you'll like it. I post this in more detail in: What is the easiest to use ORM framework for PHP?

obando.com.ve/2009/04/29/modelado-orm-ra... That is all your need!

In a previous question, I asked about various ORM libraries. It turns out Kohana looks very clean yet functional for the purposes of ORM. I already have an MVC framework that I am working in though.

If I don't want to run it as a framework, what is the right fileset to include to just give me the DB and ORM base class files? I jumped in and started looking at the ORM source code.. One thing was immediately confusing to me.. all the ORM classes have the class name appended with _CORE i.e. ORM_Core ORM_Iterator_Core, but the code everywhere is extending the ORM class.

Problem is, I've searched the whole code base 6 different ways, and I've never seen a plain ORM class def nor an ORM interface def or anything.. Could someone enlighten me on where that magic happens?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions