Showing 1-20 of 22 items.

Active Record snapshotting (Model data base history)

Created 11 years ago by Bizley Bizley, updated 11 years ago by Bizley Bizley. 3 comments

One of the common tasks the web application might be required to perform, especially the app using some kind of a CMS, is to save the history of data changes. Your client for sure will want the answer to this simple question - If I mess this up or delete by accident can we bring it back? Well, DB backup is one thing and quick recovery is another - let's talk about latter one.

1 0
5
Viewed: 20 143 times
Version: 1.1
Category: Tutorials

Use application on production/development environment without making changes

Created 14 years ago by ifdattic ifdattic, updated 14 years ago by ifdattic ifdattic. 3 comments

I like programing on my localhost, however it really bugged me to make changes to index.php & config files on my production server. After combining all available wiki articles on this topic and some trial and error this is what I use for my applications so I could just upload it to production server and it will work without any changes.

8 1
11
Viewed: 81 428 times
Version: 1.1
Category: Tips

Sub-domains with different databases in Yii!

Created 15 years ago by jwerd jwerd, updated 15 years ago by jwerd jwerd. 5 comments

I used another example posted here a while back where the person was modifying the index.php and adding in a switch case for different domains and loading separate config files. This was actually too much for me, because all my portals are the exact same (as far as routes, modules, extensions, etc) and if I ever wanted to add another route it wouldn't be feasible opening up all the config files t...

2 0
12
Viewed: 29 100 times
Version: 1.1
Category: How-tos

Single table inheritance

Created 15 years ago by samdark samdark, updated 15 years ago by samdark samdark. 8 comments

Relational databases do not support inheritance so if we need to represent it, we have to somehow store meta info while keeping performance by minimizing JOINs. One way to solve this problem is using single table inheritance. All fields for the whole class tree are stored in a single table. Class name is stored in the type field...

34 0
35
Viewed: 57 860 times
Version: 1.1
Category: How-tos