Wiki

Sorted by commentsX
Displaying 81-90 of 785 result(s).

Create / Generate PDF files with TCPDF plugin (Example to generate Table with TCPDF plugin)

Created 4 years ago by codesutraTutorials11 comments – viewed 58,838 times – ( +6 / -1 ) – version 1.1
Few days ago i was playing with TCPF plugin to create a PDF files. Since i have checked few available extension and also checked some forum threads but still i dont get my expected result for PDF file.

Update two models with one view

Created 5 years ago by sensorarioTips11 comments – viewed 41,936 times – ( +10 / -3 ) – version 1.1
Suppose to have two models: Users and Emails. You do not want to store email in a Users model. And User can have 0 or many emails. This is the form generated to create a new user (just username).
tags: database, model, view, form

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

Created 7 years ago by atrandafirTutorials11 comments – viewed 128,923 times – ( +35 / -1 ) – version 1.1
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.

Creating and updating model and its related models in one form, inc. image

Created 5 years ago by BoazHow-tos11 comments – viewed 95,245 times – ( +6 / -4 ) – version 1.1
We start slowly and simple...

Understanding "Safe" Validation Rules

Created 6 years ago by Steve FriedlFAQs11 comments – viewed 123,051 times – ( +95 / -2 ) – version 1.1
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. This article means to clear up this confusion, as well as explain the notion of Massive Assignment.

An Easy Solution for Dependent dropDownList Using AJAX

Created 4 years ago by mrsTips11 comments – viewed 83,944 times – ( +16 / -2 ) – version 1.1
Sometimes new Yii guys face problem to manage dependent dropDownList using AJAX. I am going to discuss an easy solution about this issue.

jQuery UI Datepicker

Created 4 years ago by softarkHow-tos11 comments – viewed 77,737 times – ( +13 / -1 ) – version 1.1
We all love the convenient gadget, namely jQuery UI Datepicker as an input element for date. Yii supports it as CJuiDatePicker. Let's see how to use it.

Caching the config main.php

Created 6 years ago by dckurushinTutorials11 comments – viewed 15,674 times – ( +4 / -3 ) – version 1.1
The config long array included every time, and it's not cached at all!

Special $variables in CGridView and CListView

Created 5 years ago by Steve FriedlTips11 comments – viewed 64,900 times – ( +27 / -3 ) – version 1.1
The popular CListView and CGridView widgets each take a data provider and iterate over each data object produced, calling the user's code to render each row one at a time, and most are familiar with the use of the $data variable to represent the current model object or array.

How to set up Unicode

Created 8 years ago by MikeHow-tos10 comments – viewed 96,464 times – ( +19 / -1 ) – version 1.1
To fix issues with display of special language characters once and for all there's a solution: use Unicode UTF-8 everywhere. If everything is set up to use Unicode, you can use mostly every language in your application.
tags: i18n, unicode