Category Archive

The following is a list of all entries from the tutorials category.

Tor: Vidalia Tor software exited unexpectedly

With the latest developments in internet censorship I too have been looking for secure alternatives and the Tor project is one of them but unfortunately I had a small problem with Vidalia, the software GUI for Tor. I discovered a solution after some reading and Google-ing. After installing Tor on ubuntu or other Debian based [...]


Local Web Development Environment in Ubuntu

This 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

The 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

MVC 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

The 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 [...]


Fedora Core – virtual hosts httpd

I’ve reinstalled my pc with Fedora Core recently, because of the extended SELinux and more tools that are at my disposal. A problem I always had with ubuntu was the configuration of Apache virtual hosts. Once they where installed I needed to put them into the host file and each time I reconnected to a [...]


Annoyed…with coding

I’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 [...]