Note the tag {{homeUrl}}
will be dynamically replaced at runtime.
create a class file under protected\components named RActiveRecord.php
Many desktop programmers are used to having dynamic forms, where clicking on a record in a parent sub-form, updates another sub-form with the child records. While having many levels of nested sub-forms in a single view might not be such a good idea for a web application, I thought doing it one level deep might be interesting and useful. But, instead of sub-forms I used CGridViews.
There are a couple of ways to achieve this, but the first is preferred.