Articles in category "tutorials", sorted by date (updated)X
Displaying 161-170 of 242 result(s).

Organize directories for applications with front-end and back-end

Updated 3 years ago by intel352Tutorials10 comments – viewed 69,191 times – ( +28 ) – version 1.1
Large applications are often divided into front-end and back-end (or even more ends) depending on the target user groups. The front-end should be used by common users, while the back-end mainly the administrators or staff members. The two ends usually have dramatically different appearance, even though they may share a lot of code underneath. In this tutorial, we describe a way of organizing directories of the code for both ends.

MVC primer and 5 minute form walkthrough

Updated 3 years ago by rix.rix.Tutorials0 comments – viewed 17,339 times – ( +8 ) – version 1.1
This tutorial assumes some basic knowledge of Yii and a functional development environment.
tags: Forms, tutorial, mvc

Simple access control

Updated 3 years ago by szfjozsefTutorials4 comments – viewed 33,767 times – ( +4 / -8 ) – version 1.1
For those who feel, the Controller->accessRules() or RBAC (Role-Based Access Control) is too complicated or doesn't want the username(s) to be hard-coded in accessRules(), here is a very simple, easy-to-implement solution.

Deploy yii on pagoda box

Updated 3 years ago by francis jaTutorials0 comments – viewed 7,157 times – ( +4 ) – version 1.1
pagoda box is very useful tool for a programmer to test their php app online so its very useful one. For deploying code pagodabox use git command
tags: pagodabox, pagoda

Display an AJAX tree from your DB using CTreeView

Updated 3 years ago by François GannazTutorials10 comments – viewed 51,853 times – ( +21 ) – version 1.1
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).
tags: AJAX, CTreeView

How to log context information to logger (session id, user, ...)

Updated 3 years ago by ajsharmaTutorials0 comments – viewed 13,972 times – ( +2 ) – version 1.1
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
tags: Logging

Starting your Yii Project Reference Guide (with Git VCS in Linux)

Updated 3 years ago by marcanuyTutorials5 comments – viewed 27,406 times – ( +18 ) – version 1.1
I've found useful to have a step by step reference guide to work with Git with most used commands, feel free to update it with useful information you may find interesting too.

config Use MS SQL SERVER 2005 2008.

Updated 3 years ago by AsgarothTutorials2 comments – viewed 45,314 times – ( +4 ) – version 1.1
Use SQL SERVER 2000, the date format not like: yyyy/mm/dd hh:mm:ss. So I change to use SQL SERVER 2008 EXPRESS.

CGridView: Use special variable $data in the htmlOptions of a column (i.e. evaluate htmlOptions attribute)

Updated 3 years ago by c@cbaTutorials3 comments – viewed 50,429 times – ( +28 / -1 ) – version 1.1
    For each column of the CGridView, we can specify name, value, htmlOptions, cssClassExpression etc. In the declarations of the attributes value and cssClassExpression we can use the "special" variable $data, for example like this: 'value'=>'$data->author->username',.     Now we might want to use $data in the declaration of the htmlOptions attribute, which is normally not possible, to generate for example the tag <td id="3" class="name_3">, where 3 is the id of the data model for the current row, i.e. $data->id. That is, we want to be able to use: 'htmlOptions'=>array('id'=>'$data->id', 'class'=>'"name_{$data->id}"')     Here's a way to accomplish this...

Front-end developer's guide

Updated 3 years ago by waitekkTutorials5 comments – viewed 23,869 times – ( +11 ) – version 1.1
This wiki is a work in progress.