One aspect of User Interface Design has to do with the coherence of the design and the use of the colors between the different User Interface Components used.
One aspect of User Interface Design has to do with the coherence of the design and the use of the colors between the different User Interface Components used.
This article explains issues about installing XAMPP server package (Lite version) on Windows OS and configuring it for serving webapps written in Yii. Please note, that XAMPP is available for many more platforms and systems. I write about Windows edition as it was the only one tested by me.
If you want to add module based login to a site without using RBAC, please follow these guidelines.
In this article, we introduce a set of CSS naming conventions that we have applied in several big projects and achieved success. The goal of these naming conventions is to eliminate the possibility of naming conflicts, facilitate debugging and maintenance, and to simplify the naming process.
This page is created to supply short directions and general tips for managing a Yii application in NetBeans IDE.
Followings are the simple steps to put an analogue clock widget on your skeleton application that is just generated by yiic.
It is a common case coders often come accross. For example the purpose of these checkbox is to mark records to be deleted
I found a better solution.
In order to nicely display flash Messages, create view like this called views/site/dialog.php :
Add these lines in /config/main.php
'components'=>array(
.........
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=database1',
'emulatePrepare' => true,
'username' => 'root',
'password' => 'itsasecret',
'charset' => 'utf8',
),
'db2'=>array(
'class' => 'CDbConnection',
'connectionString' => 'mysql:host=localhost;dbname=databa...
Sometime, in a many-to-many relation, you need to retrieve AR that aren't linked. In practice, AR with null value in the join table. So you implements a criteria like this :
public function scopeUnused( $useAnd = true )
{
$join = " left outer join composed_by j on t.ID = j.ID ";
$condition = ' j.ID Is Null';
Installing WAMP on XP was pretty easy; W7 is not so trivial. It's not difficult once you know, but it took me best part of a day to figure out and required gleaning various bits of information from around the web; this tutorial brings it all together in one place to (hopefully) make other peoples lives that bit easier. It does assume that you are reasonably happy configuring Apache, PHP, and MySQL...
In this article you will find Yii framework extensions enabling you to add various charts/print out buttons etc. to your webapp.
Hi, I was having problems each time I had to test the site or edit something on my local machine, like changing the db connection, change the debug mode to false, the trace level to 0, disable Gii, etc. So I created a class to resolve all my problems, hope to help you in your projects!
Hello ppl. Even though i have a small experience with yii I though of writing this to help people which want to do something similar.
This example uses a MySQL DB with a table named tree
with the fields id
, name
, and parent_id
. The parent_id
will be NULL
for root elements. The SQL is kept simple (no autoinc, no FK, etc).
In this tutorial we will be setting up a content type to be ordered by weight using the JUI Sortable plugin.
p.s. latest version of this tutorial is always available unter the docs/ folder of the User Management Module.
In this post I am going to describe a solution to make your yii-based web application safe from illegal content injections.