📜 ⬆️ ⬇️

Yii 1.1.2

Obviously, this year's release schedule for the framework is much quieter. But now each release brings much more bug fixes and new features added.

In the new, just released, version 1.1.2, we have about 20 bug fixes and 30 improvements or innovations.


Consider the most remarkable:


Gii module



Separately, it is necessary to note the new module called Gii , which is included in the distribution.

What used to be done with the yiic utility can now be easily done right in the browser. This module provides the ability to generate code not from the command line, but in the browser, which of course is much more convenient.

Gii initially included several generators (and their number can be expanded), each of which is responsible for generating the code of its type. For example, the controller generator generates the controller class code together with several view files, and the model generator creates the ActiveRecord class for a specific table in the database.

Typical actions when using the generator:
  1. Enter the generator page.
  2. Fill out the form with parameters for generation. For example, when using the module generator, to create a new module, you need to enter the name (identifier) ​​of the module.
  3. Click the “Preview” button to see which files will be created and click on any of them to view their contents.
  4. Click the Generate button to create the files directly.
  5. Optionally, view the log file with a description of all actions performed during the generation of a new code.
Since the module creates new files with php-code, it should be used only on the developer's server.

For more information, as well as instructions for connecting the module, see the documentation .

Source: https://habr.com/ru/post/88846/


All Articles