News Feed

Other article

Added on Mar 24, 2012

The above code first creates a data provider for the Post ActiveRecord class. It then uses CListView to display every data item as returned by the data provider. The display is done via the partial view named '_post'. This partial view will be rendered once for every data item. In the view, one can access the current data item via variable $data. For more details, see itemView. In order to support sorting, one has to specify the sortableAttributes property. By doing so, a list of hyperlinks that can sort the data will be displayed.

Test news

Added on Mar 22, 2012

HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG).WHATWG was working with web forms and applications, and W3C was working with XHTML 2.0. In 2006, they decided to cooperate and create a new version of HTML.Some rules for HTML5 were established:New features should be based on HTML, CSS, DOM, and JavaScriptReduce the need for external plugins (like Flash)Better error handlingMore markup to replace scriptingHTML5 should be device independentThe development process should be visible to the public

Execution time: 0.035965 secs