Version 1.0.5

    They waited. With some delay (before this release came out immediately at the beginning of the month), but release 1.0.5 saw the world.
    So, what amenities await us this time?

    New:

    - Improvements in ActiveRecord:
    * Ability to write similar constructs: Post :: model () -> published () -> recently () -> findAll () (idea taken in Ruby on Rails)
    * Support for "lazy" (deferred) downloads specifying parameters on the fly
    * Oracle support
    - An option in CHtml that allows generating tags without recoding attribute values
    - Ability to check date and time (in CTypeValidator)
    - An additional way to describe the rules for converting URLs in the controller / action path using parameters (described below)
    - Additional features when checking email addresses (CEmailValidator)
    - Improving the performance of CWebUser :: checkAccess () by caching the results of access control requests
    - Added CHtml :: value ()
    - The command 'yiic shell model' now generates labels for attributes by default

    I would like to note separately that now when defining the rules for generating URLs, you can use constructions of the following form:

    array (
    '<_c: (post | comment)> // <_ a: (create | update | delete)>' => ' <_c> / <
    _a > ', ' <_c: (post | comment)> / '=>' <_a> / view ',
    ' <_c: (post | comment)> s / * '=>' <_a > / list ',
    )

    Here we use two parameters with the names '<_c>' and '<_a>' on the right side, where a path of the form “controller / action” is described. The parameter '<_c>' can correspond to the lines 'post' or 'comment', and '<_a>' can correspond to the name of the action.

    Like regular rules, these rules can also be used to translate and create URLs. For example, using the above rules, the address '/index.php/post/123/create' will be converted to the path 'post / create' with the GET variable 'id' equal to 123. And if you specify the path 'post / list' and GET- assign 2 to the 'page' variable, we will get the address '/index.php/posts/page/2'.

    Changelog

    Download

    Also popular now: