This extension simplifies the handling of multilingual content stored in the database.
It assumes that you use two tables for your content (one for the main content and a second one for the translations) with a one-to-many relationship between them.
protected/extensionsSee the following code example:
class Product extends I18nActiveRecord { public function i18nLanguages() { return array('zh_cn'); } public function i18nAttributes() { return array('name','content'); } }
Total 3 comments
There is no documentation in the code, there is no documentation on the website. Attempting to debug already shows this code won't work as expected. At most useful for getting ideas from the source code.
*Edit: I got it to work, but it's almost the same as http://www.yiiframework.com/extension/multilingual-active-record/, not really worth existing as a separate Yii extension at the moment.
Please publish a normal documentation... one simillar to MultilingualActiveRecord extension!
No documentation
Leave a comment
Please login to leave your comment.