Showing 461-480 of 652 items.

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 212 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: 58 034 times
Version: 1.1
Category: How-tos

Converting an Artisteer Theme to Yii

Created 15 years ago by bglee bglee, updated 15 years ago by bglee bglee. 3 comments

There are two approaches to converting an Artisteer theme. The first is to simply copy an existing Artisteer – based Yii theme, overlay the CSS and images, then make any necessary tweaks to the layout files. This is undoubtedly the fastest route, but won't teach you as much as doing it from scratch. That's ok. Sometimes getting the job done is the top priority. The second approach is more gen...

6 0
12
Viewed: 32 729 times
Version: 1.1
Category: How-tos