Tag Archive
The following is a list of all entries tagged with database:
Using Our Models To Do Basic Queries On The DB
Filed in tutorials, 23/06/2011, 22:37The application has an auto-generated model, Gii kindly provides the model once the database is created. 01<?php02class Product extends CActiveRecord03{04 /**05 * The followings are the available columns in table ‘Product’:06 * @var integer $id07 * @var integer $brandId08 * @var string $name09 * @var string $price10 */11 12 /**13 * Returns the static model of [...]
YiiFramework adding functions to your models
Filed in tutorials, , 22:16MVC has some principals to it, like the fat model principal that I’ll show in this tutorial and which is used in a lot of frameworks. I’m going to show how to add and use functions that can be added to a model. There are a few ways to add to a models that increase [...]
mySQL view and YiiFramework
Filed in tutorials, , 19:03The sql standard gives the possibility to create a view, a view is or can be a mask of one column for a special user that only has access to some of the data and thus not all the data stored in the column? The view can also be used to regroup data from multiple [...]
Yii framework relations between models and tables
Filed in post, 18/10/2010, 20:57Now that my first application in Yii is completed, I’ve been studying up on the relations in the Yii framework to simplfy my application. These relations are the same as you find everywhere else but the things is that the tutorial, yet again, isn’t a beginner’s guide. It’s written by programmers, meaning everything the programmer [...]