Wiki

Articles tagged with "activerecord"X
Displaying 1-2 of 2 result(s).

Instantiate a child class that depends a type field from parent model class (CActiveRecord)

Created about a year ago by robregonmHow-tos2 comments – viewed 6,200 times – ( +3 / -1 ) – version 1.1
[EN] [ES]

Using counters with ActiveRecord

Created 2 years ago by davi_alexandreTips8 comments – viewed 18,574 times – ( +14 / -1 ) – version 1.1
Let's say, for example, that you are developing a blog or some kind of CMS and you want to track the number of times each post was viewed (maybe to show a list of the most viewed ones).