Tag Archive
The following is a list of all entries tagged with yii framework:
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 [...]
SQL & Yii
Filed in General, 21/06/2011, 19:35At school, I have a course ORACLE SQL which learned me some new tricks and options, I’ve also been testing them in MySQL and so the idea grew to see how Yii framework would interact with those tricks. I must say I didn’t expect them to work but they do so probably within the next [...]
Yii framework: RBAC
Filed in General, 16/02/2011, 19:44Rbac in the Yiiframework isn’t hard at all but how do you keep your db clean and readable code readable and logic! After you have successfully configured the RBAC in /protected/config/main.php you need to insert the sql into your database and introduce your rules and accesses into to table, mine looks like this: And my [...]
Yii, divide your models into folders
Filed in post, 13/11/2010, 16:24Working with models in Yii is easy but you can’t let them confuse you so I propose you subdivide your models in two categories the form models and the AR models. Note that you will to have to indicate this in each module: Share on Facebook
Annoyed…with coding
Filed in General,Projects,tutorials, 22/02/2010, 00:39I’ve been coding away all week, that is between my other jobs at home In all my ‘wisdom’ and persistence i made a small app with Yii which stores data in an array and serializes it into a db, and a basic CRUD, a proof of concept to see if the framework was capable of [...]