Hacker News new | past | comments | ask | show | jobs | submit login

Have you tried Yii at all?

In my most recent (side) project, I'm doing a Yii2 website and I'm feeling like it's not enterprisey enough. I have to go out of my way to figure out the best way to split things apart (which, I guess is good because it doesn't actually make that difficult for me at all - it's just something I have to choose to do)




I used Yii2 at a previous job. The way that it splits things out feels horrendous. The documentation is sub-par, and I feel like I spent more time trying to figure out why something didn't work the way I expected (from reading the code) than I did fixing things.

I'm sure at least some part of that was the previous developer who built the application. But there is absolutely no reason for documentation to not answer the basic questions that seem to come up many times per day in their IRC channel.


My experience has been 100% different from yours.

I commonly recommend Yii and laud it's extensive documentation and "Definitive Guide" that covers basically everything.

In my current experience as a developer, Yii's documentation is the best I've ever utilized. Much better than any Javadoc I've googled or even php.net's


What are forms and form validation like in Yii? [Have looked at the docs, but after real-world usage]

I've used form libraries from the PHPClasses one back in 2003 through Symfony forms now (which has cognitive overload, and is so flexible as to be restrictive). Most business systems I write are data focused so forms play a massive role in them - and in my developer happiness.


Validation works directly with the model and you can pick a number of ways to check the input and have it return an appropriate error message.

The view/controller layers are very flexible and can be hooked up to anything from an HTML template using Yii to angular/bootstrap (which is what we're using) or another framework to handle the forms.


Use it at my current job. Also used li3 before that. The current version works pretty well without having any of the weirdness that can plague a framework once it gets more mature and people start wanting to graft in whatever is trendy from other projects.

What I like about it is the flexibility of the ORM, where you can use the model in a sane way but can completely toss it aside and just use SQL for those edge cases that would be a PITA in something like Django.


+1 for Yii2, I've used it for many big projects, it's rock solid and faster than most libraries of a similar size.


No I haven't and I probably won't, since I don't do php anymore :)




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: