Wiki

Sorted by ratingX
Displaying 361-370 of 719 result(s).

Use application on production/development environment without making changes

Created 3 years ago by ifdatticTips3 comments – viewed 32,430 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.

An important tip when you are using CArrayDataProvider.

Created 2 years ago by sirin kTips0 comments – viewed 8,134 times – ( +8 / -1 ) – version 1.1
Yii ‘s CArrayDataProvider is very helpful to display model relation data's directly on it.But it is truely a confusing one because by default it will assume a table field named “id” as primary key for its pagination purpose and what if you dont have field named “id” as primary key on your table? so its truely confusing and if you tried to display without an “id” field on ur table you will get an error like “yourmodel.id is not defined”.

Include Yii framework in a Joomla module

Created 3 years ago by zaccariaHow-tos7 comments – viewed 20,691 times – ( +8 / -1 ) – version 1.1
Delploying anything using joomla's framework is quite difficult. The framework don't provide a good MVC structure and the documentation is very poor.

Yet another implementation of CPhpAuthManager.

Created about a year ago by seenivasanHow-tos3 comments – viewed 8,687 times – ( +8 / -1 ) – version 1.1
In this wiki, I try to implement a simple authorization schema without putting much logic inside a file or into database table. We are constructing authorization hierarchy inside the controller. We are getting roles for the current user from database table and assigning only roles to user that are declared in the particular controller. We have brought down the work of loading of auth data at main application level to controller level. This way we have pulverised auth data for entire site into smaller units. Finally we are going to look at couple of examples.

Update two models with one view

Created 3 years ago by sensorarioTips11 comments – viewed 32,806 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

Add Beautiful Radio/Checkbox Buttons To Grid

Created about a year ago by waterloomattHow-tos1 comment – viewed 15,843 times – ( +10 / -2 ) – version 1.1
This is a tutorial on how to create slick looking status buttons to update a model's status via a grid. Note** This tutorial uses Yii Bootstrap for styling.

Show captcha after <N> unsuccessfull attempts

Created 2 years ago by zitterHow-tos7 comments – viewed 15,007 times – ( +14 / -4 ) – version 1.1
In this mini howto I would like to show how to add a required captcha field in the login form, after a defined number of unsuccessfull attempts. To do this, I will use the blog demo that you have in default Yii download package (path/to/yii/demos/blog).

How to write a simple application component

Created 3 years ago by zaccariaHow-tos5 comments – viewed 41,210 times – ( +19 / -7 ) – version 1.1
An application component is a confortable way for share information among all component of the application

multiple CActiveDataProviders in one CGridView

Created about a year ago by KonApazHow-tos6 comments – viewed 12,790 times – ( +7 / -1 ) – version 1.1
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

Popup AJAX DialogBox without any extension

Created about a year ago by KonApazHow-tos6 comments – viewed 13,521 times – ( +7 / -1 )
In this wiki I explain how to show a default popup dialogbox (like Gii does) using an existing module.