4 ms·
I'm currently working with Yii. I was pretty sure I was going to go into Rails development, and we were planning on doing the next project in Rails, but Yii is
by Periodic 15y ago
I'm currently working with Yii. I was pretty sure I was going to go into Rails development, and we were planning on doing the next project in Rails, but Yii is actually very good.
It's not built around creating DSLs, it's built around using solid OO principles to build a very extensible system. Yii's use of behaviors (much like mixins in Ruby) allow you to easily encapsulate behavior and share it among many models and projects, and of course it's built on a solid foundation of classes and interactions, including ActiveRecord.
I still dislike the syntax a bit, and I understand how the syntax affects the design of the framework, but really it is very similar to Rails.
- damncabbage 15y agoYii is the PHP gateway drug to Rails. :) Once you get the hang of Yii's ActiveRecord implementation (with scopes, behaviors and relations), you're a fair chunk of the way to a) understanding how to use Rails' version effectively, b) coming to loathe CodeIgniter, Zend Framework and CakePHP for not providing similar functionality.