Tag Archives: yii

Crosswalk Table with No Primary Key

9 Feb

Problem I have a “crosswalk” table like so: CREATE table `usergroup` (   `userId` int NOT NULL DEFAULT ”,   `groupId` int NOT NULL DEFAULT ”,   KEY `userId` (`userId`, `groupId`) ) So it has no need for a primary key.  However, when I want to access the table in Yii, like so: $user->group->groupName I [...]

Creating a New Yii Application – Quick Reference

25 Jan

This post is here to remind me how to create a Web application using the Yii framework.   It will be updated from time to time.  This is assuming the yii framework is inside WebRoot Here is how to create a new webapp named “sampleApp”. Open your command prompt or Terminal cd WebRoot php YiiRoot/framework/yiic.php [...]