Yii Developer Blog
Follow
Find
37.9K views | +28 today
Scooped by Mahsa Teimourikia
onto Yii Developer Blog
Scoop.it!

Working with Databases: Active Record | The Definitive Guide to Yii | Yii Framework

Although Yii DAO can handle virtually any database-related task, chances
are that we would spend 90% of our time in writing some SQL statements
which perform the common CRUD (create, read, update and
more...
No comment yet.
Yii Developer Blog
For sharing articles and tutorials on Yii framework
Your new post is loading...
Scooped by Mahsa Teimourikia
Scoop.it!

Understanding "Safe" Validation Rules | Wiki | Yii Framework

A common source of confusion among new Yii users is how the 'safe' validator works, how it works with other validators, and why it's necessary in the first place.
more...
No comment yet.
Scooped by Mahsa Teimourikia
Scoop.it!

Enforcing "You must agree" requirements in forms | Wiki | Yii Framework

Checkboxes have two possible values, true and false, but some applications require that the user select one particular value before proceeding. Examples might be:
more...
Scooped by Mahsa Teimourikia
Scoop.it!

Validation scenarios | Jonah’s Thoughts

more...
No comment yet.
Scooped by Mahsa Teimourikia
Scoop.it!

Using Sessions with the Yii Framework

Using Sessions with the Yii Framework | Yii Developer Blog | Scoop.it
I haven’t written much about the Yii framework lately, mostly because I’ve been working night and day on the fourth edition of my “PHP and MySQL for Dynamic Web Sites: Visual Quic...
more...
No comment yet.
Scooped by Mahsa Teimourikia
Scoop.it!

htmlOptions explained for various controls. | Wiki | Yii Framework

Most controls that are rendered by CHtml have an argument called $htmlOptions. This argument is an array that holds the attributes of the HTML element. For example the following code:
more...
Scooped by Mahsa Teimourikia
Scoop.it!

File uploads in CForm (Form builder) | Wiki | Yii Framework

While there is a reasonable amount of documentation regarding CForm (form builder) and file uploads seperately, there really is not any coverage of both in combination.
more...
No comment yet.
Scooped by Mahsa Teimourikia
Scoop.it!

Creating and updating model and its related models in one form, inc. image | Wiki | Yii Framework

We start slowly and simple...
more...
No comment yet.
Scooped by Mahsa Teimourikia
Scoop.it!

slug-behavior | Extension | Yii Framework

SlugBehavior
more...
No comment yet.
Scooped by Mahsa Teimourikia
Scoop.it!

Special Topics: Authentication and Authorization | The Definitive Guide to Yii | Yii Framework

Authentication and authorization are required for a Web page that should
be limited to certain users. Authentication is about verifying whether
someone is who they claim to be.
more...
No comment yet.
Scooped by Mahsa Teimourikia
Scoop.it!

Styling CMenu and CMenu items and links with CSS class in Yii | Code for Thought

Styling CMenu and CMenu items and links with CSS class in Yii | Code for Thought | Yii Developer Blog | Scoop.it

Many times we would want to style our CMenu by adding id or css classes to it. We can easily do this through htmlOptions, itemOptions, and linkOptions.

more...
No comment yet.
Scooped by Mahsa Teimourikia
Scoop.it!

Add information to Yii::app()->user by extending CWebUser | Wiki | Yii Framework

This little tutorial explains a way how you can retrieve more parameters from Yii::app()->user by adding a component that extends CWebUser and retrieves the user information from database table named User.
more...
No comment yet.
Scooped by Mahsa Teimourikia
Scoop.it!

Working with Databases: Active Record | The Definitive Guide to Yii | Yii Framework

Although Yii DAO can handle virtually any database-related task, chances
are that we would spend 90% of our time in writing some SQL statements
which perform the common CRUD (create, read, update and
more...
No comment yet.
Scooped by Mahsa Teimourikia
Scoop.it!

Special Topics: URL Management | The Definitive Guide to Yii | Yii Framework

Complete URL management for a Web application involves two aspects:
more...
No comment yet.
Scooped by Mahsa Teimourikia
Scoop.it!

Adding Criteria To Validation Rules | Yii Framework

Adding Criteria To Validation Rules | Yii Framework | Yii Developer Blog | Scoop.it
Mahsa Teimourikia's insight:

Sometimes you want your validation rules to be just a little bit more than the standard options available to you like ‘numeric’, ‘length’ or ‘safe’. Occasionally you might need a value to be unique within it’s database column and etc. Read on to see how it works.

more...
Scooped by Mahsa Teimourikia
Scoop.it!

Special Topics: Logging | The Definitive Guide to Yii | Yii Framework

Yii provides a flexible and extensible logging feature. Messages logged
can be classified according to log levels and message categories.
more...
Scooped by Mahsa Teimourikia
Scoop.it!

Configuring Session in Yii Framework - CDbHttpSession

Configuring Session in Yii Framework - CDbHttpSession | Yii Developer Blog | Scoop.it
The CDbHttpSession component extends CHttpSession but saves in the session in database instead of files.
more...
Scooped by Mahsa Teimourikia
Scoop.it!

CHttpSession | Class Reference | Yii Framework

CHttpSession provides session-level data management and the related configurations.
more...
Scooped by Mahsa Teimourikia
Scoop.it!

CActiveForm | Class Reference | Yii Framework

CActiveForm provides a set of methods that can help to simplify the creation
of complex and interactive HTML forms that are associated with data models.
more...
Scooped by Mahsa Teimourikia
Scoop.it!

Multiple file upload handler | Wiki | Yii Framework

Hi,
Mahsa Teimourikia's insight:

Recently I've worked on a project where I had to upload multiple files. I've come up with a short generalized script. You can use it if you have a table with lot of file location fields/columns. I don't know if it's the best solution or not but it works great for me. so, lets start

more...
Scooped by Mahsa Teimourikia
Scoop.it!

php - Yii multi page form wizard best practice - Stack Overflow

Mahsa Teimourikia's insight:
Stateful Forms and Wizards
more...
No comment yet.
Scooped by Mahsa Teimourikia
Scoop.it!

fileimagearbehavior | Extension | Yii Framework

attach file(s) / image(s) with multiple formats to a CActiveRecord
more...
No comment yet.
Scooped by Mahsa Teimourikia
Scoop.it!

Yii - Example of Creating a submenu widget

Yii - Example of Creating a submenu widget | Yii Developer Blog | Scoop.it
This is a continuation of two previous articles, How to make a dynamic Sub-menu and How to make a dynamic sub-menu – UPDATE, which show the
more...
No comment yet.
Scooped by Mahsa Teimourikia
Scoop.it!

How To Customize CMenu Output | Wiki | Yii Framework

CMenu comes with a lot of great customization options built in but sometimes you need it to do more.
more...
No comment yet.
Scooped by Mahsa Teimourikia
Scoop.it!

The Web Robots Pages

The Web Robots Pages | Yii Developer Blog | Scoop.it

Web site owners use the /robots.txt file to give instructions about their site to web robots; this is called The Robots Exclusion Protocol.

more...
No comment yet.
Scooped by Mahsa Teimourikia
Scoop.it!

yii-debug-toolbar | Extension | Yii Framework

yii-debug-toolbar | Extension | Yii Framework | Yii Developer Blog | Scoop.it
A configurable set of panels that display various debug information about the current request/response.
more...
No comment yet.