Completely new to Yii, but attracted by its apparent straightforwardness and elegance, I thought the best bet for getting started would be Larry Ullman’s “Learning the Yii framework” step-by-step for building a simple two-table app (new posters are not allowed to post URLs).
The first five steps are a breeze. The generated app runs and looks OK. But with step six, progress grinds to a halt …
-
The app has no menu pointing to CRUD forms for the two tables. Why not? How do I add that, to which file, and where’s the documentation for that step?
-
I can manually bring up the Department form or the Employee form by adding /department or /employee to the main app’s url, and from there choose the Create option, but once again, functionality a framework could generate automatically is not there, for example in the employee form …
2a. There’s a field for choosing the department to which the employee belongs. The input control is a plain text input. The model stipulates this is a foreign key. Why doesn’t Yii generate a lookup dropdown? Yii doesn’t do it, I have to do it, but how do I add it, to which file, and where’s the documentation for that step?
2b. There’s an email field; why doesn’t Yii generate an automatic email address validator? I have to do it. How do I add it, to which file, and where’s the documentation for that?
2c. There’s a HireDate field that needs a data picker, but Yii does not provide it. Why not? I have to do it, but how do I add it, to which file, and where’s the documentation for that?
- Is there a set of model configurations I can set so Yii generates such code automatically in future apps? If so, how do I do that, which file, and where is the documented for that?
Sorry to have so many questions. I’d really like to like this framework. Any help appreciated.