Yii Search/Other gripes
Posted 12 January 2010 - 12:36 PM
The other thing I want to bring up is in another post today. This is the lack of examples. What can we do to get more examples in Yii? Ideally, we should post short samples in the API comments similar to php.net. This would help tremendously. Simply stating what parameters is not useful unless you can see the range of possible values.
Somewhat related to examples is my problem with knowing what extensions to pick from. Now that we have zii, does that make all other extensions deprecated? I don't see this being clearly explained anywhere.
That said, I still love Yii and have no intention of not using it. I just want to make it a better experience.
Posted 12 January 2010 - 01:33 PM
As for examples, the extensions make quite a good reference for widgets etc. I agree that it would be good to have more small working examples on specific topics, but there are plenty of snippets you can look at on this forum.
As for Zii vs user extensions, it seems to me that Zii is in its infancy but will eventually become a great resource. User extensions need some time and effort to evaluate and/or modify. I think its best to try making some simple ones of your own first to see how its done and then use that knowledge when choosing extensions.
Hope this helps.
Posted 12 January 2010 - 01:50 PM
Yeah, that helps big time. Didn't notice this little feature. Now if we could just solve why search result links to forum posts don't go through, I'd be even happier.
As for examples, I hope as the community grows, people will start posting examples somewhere. Whether this be in the API comments as I suggest (to be like php.net) or possibly a new forum section. Or maybe I'll start an unofficial repository for examples, something like yiiexamples.com. I'd do it, but I would want to make sure everyone was on board with posting examples in the same place.
So if zii is still maturing, that makes my selections more difficult. I want to use the best/newest methods, but it would be nice to know if say a particular user extension is being replaced or not.
Posted 12 January 2010 - 02:26 PM
Also note that qiang is working on a new Yii website. So I guess we will see some enhancements soon anyway.
Posted 12 January 2010 - 02:37 PM
Posted 12 January 2010 - 02:45 PM
What you mean? You can already submit to the cookbook and you can also edit other cookbooks.
Posted 12 January 2010 - 03:00 PM
Posted 12 January 2010 - 03:10 PM
Posted 13 January 2010 - 04:20 AM
But a nice demo site showing every feature/widget in action would be really nice. Should be obligatory for authors to also supply a demo for that site when creating an extension/component.