Wiki

Sorted by viewsX
Displaying 151-160 of 715 result(s).

Update two models with one view

Created 2 years ago by sensorarioTips11 comments – viewed 32,373 times – ( +10 / -2 ) – 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

How to use YiiBooster TbFileUpload widget

Created about a year ago by Antonio RamirezHow-tos15 comments – viewed 32,362 times – ( +11 ) – version 1.1
The following wiki is to explain how to make use of the TbFileUpload widget from YiiBooster. I have received a couple of requests and I thought was worth writing a wiki for it.

How to use a Widget as an Action Provider

Created 3 years ago by Antonio RamirezHow-tos14 comments – viewed 32,253 times – ( +27 ) – version 1.1
As written on the API docs: An Action Provider Widget is a widget that has declared several actions by using its 'public static function actions()'. After, a Controller can easily import all its declared actions on its 'public function actions()'.
tags: Widgets, CAction

Filter / Search with CListView

Created 3 years ago by JohnPollardHow-tos7 comments – viewed 32,173 times – ( +27 ) – version 1.1
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

Adding login form to each page

Created 5 years ago by pestaaTutorials5 comments – viewed 32,122 times – ( +3 / -2 ) – version 1.1
After adding proper form to the main layout, like:

Use application on production/development environment without making changes

Created 2 years ago by ifdatticTips3 comments – viewed 31,888 times – ( +8 / -1 ) – version 1.1
I like programing on my localhost, however it really bugged me to make changes to index.php & config files on my production server. After combining all available wiki articles on this topic and some trial and error this is what I use for my applications so I could just upload it to production server and it will work without any changes.

How to filter CGridView with From Date and To Date datepicker

Created 2 years ago by kiran sharmaTips12 comments – viewed 31,831 times – ( +17 / -3 ) – version 1.1
This artical is related to allow user to filter CGridView with date range using datepicker on submit button. Here I use Yii Cookie to preserve date in datepicker textbox after submitting the form.

Importing CSV file to mysql table using "LOAD DATA" command.

Created 2 years ago by sirin kTips12 comments – viewed 31,519 times – ( +7 ) – version 1.1
hi, Here i am giving you some simple step to import huge data from a csv file to your mysql table.this is useful when you have a very huge data to import from csv format.
tags: csv, mysql, import

Real-time display of server push data using Server-Sent Events (SSE)

Created 2 years ago by bennounaHow-tos16 comments – viewed 31,485 times – ( +12 ) – version 1.1
There are several methods and techniques that come handy in the case you need to call an external resource periodically or if you are waiting for a server push, but I present here an easy and straightforward one using HTML5's Server-Sent Events (SSE).

Multiple Databases and Multiple Domains

Created 4 years ago by got 2 doodleTutorials2 comments – viewed 31,242 times – ( +15 / -2 ) – version 1.1
Add these lines in /config/main.php
tags: database