[EXTENSION] Yii Kohana Bridge, use Kohana helpers in Yii!
Posted 06 March 2009 - 07:09 AM
Can it work with a complete Kohana installation? If so, maybe we should put the Kohana installation under protected/vendors directory, and move your bridge class to protected/extensions/kohana/Kohana.php ?
Anyway, excellent work! You should post it to our extension system as well.
Posted 06 March 2009 - 07:47 AM
I think in theory we should be able to include the complete Kohana installation, but it probably wouldn't make much sense because of the overhead. Helpers are useful and don't require the Kohana core, hence the minimal overhead.
I'll probably look into bridging the Kohana configuration class as well (and extract it out of the Kohana core), since it is very flexible and could be useful for larger scale applications.
Posted 07 March 2009 - 03:21 AM
There is an issue though, some of the CI / Kohana helpers refers to some other Library files, so not all helpers will work as is.
For example, Kohana's xss_clean and CI's xss_clean helper calls the Library version, which does not exist in the helpers standalone.