This is my very first day with Yii 2.0 after more than one year using 1.1.13
I would need some help to adjust…
1-Gii in Yii 2 does not generate a link to open a search form on a crud? What is the replacement for this?
2-In Yii 1.1 there used to be a folder named "messages" where to place translations for i18n. Where is it now? Is there an alternative way?
3-Documentation says: "In general, the files in the application can be divided into two types: those under basic/web and those under other directories. The former can be directly accessed via HTTP (i.e., in a browser), while the latter can not and should not be."
Because of this, and because protected folder no longer exists, what exactly do I put under public_html? only the basic/web folder? I dont understand what is the best strategy…
1-Those fields already existed in 1.1. What i’d like to know is about the link toopen the search form, which allows you to make more complex searches or search fields that are not on the grid.
2-Thank you. I’l check it out.
3-This seems to be a very messy organization. My folder struture has a lot of other stuff that doesn’t have to do with yii. Must I mix it all together in the same folder?..
Try specifying search model class when generating CRUD.
You can create another directory to hold Yii app and then fix paths in index.php. The idea is that it’s not really a good idea to have your source code in web accessible directory.