Tag Archive
The following is a list of all entries tagged with php:
Local Web Development Environment in Ubuntu
Filed in tutorials, 03/05/2012, 19:11This short guide explains how to set up a local development environment that will allow us to create new sites on the fly and automatically serve them up on our local development machine under Ubuntu. I won’t explain how to install LAMP, I’ll just suppose it’s already done and that a default installation is installed [...]
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 [...]
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 [...]
Yiiframework Captcha problem
Filed in post, 23/02/2011, 15:48While lanching a new website I had problems with the AJAX request allowing the captcha to refresh itself. The link ‘Get a new code’ didn’t work properly and I didn’t really find an alternative at first. The only alternative I found it to add in the $this->widget(); add an array after ‘CCaptcha’: Share on Facebook
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