Wiki

Sorted by commentsX
Displaying 381-390 of 728 result(s).

Custom column in TbGridView with icon by condition, find out icon class glyphicons easy (YiiBooster)

Created about a year ago by Kostas Apazidis (KonApaz)Tips2 comments – viewed 18,873 times – ( +2 / -1 ) – version 1.1
First of all, You have to find out the class of the desired icon, so visit the http://getbootstrap.com/2.3.2/base-css.html#icons

XSS safe model content

Created 4 years ago by phirasTutorials2 comments – viewed 7,794 times – ( +4 ) – version 1.1
In this post I am going to describe a solution to make your yii-based web application safe from illegal content injections.

Ordering Models by Weight with CJuiSortable

Created 4 years ago by Matt KelliherTutorials2 comments – viewed 10,730 times – ( +10 ) – version 1.1
In this tutorial we will be setting up a content type to be ordered by weight using the JUI Sortable plugin.

two or more different collected data in one CGridView

Created about a year ago by Kostas Apazidis (KonApaz)How-tos2 comments – viewed 6,293 times – ( +3 / -1 ) – version 1.1
Assume that you have teachers and students model.

Multiple Databases and Multiple Domains

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

Using CJuiDialog to display flash Messages in Dialogues

Created 4 years ago by thyseusTutorials2 comments – viewed 18,254 times – ( +11 ) – version 1.1
In order to nicely display flash Messages, create view like this called views/site/dialog.php :

Access log output from unit tests

Created 2 years ago by MikeTips2 comments – viewed 5,529 times – ( +4 ) – version 1.1
Say, you want to write a test for a component which provides a caching feature. How would you know, that some method of your component returns a cached result? With the solution described here you can inspect all log outputs. So you could search the logs for accesses to the DB to really make sure, that the result was served from cache.

Create/Develop View files with plain HTML (Without using ActiveForm Class)

Created about a year ago by kalpitHow-tos2 comments – viewed 7,624 times – ( +2 / -2 ) – version 1.1
Today i want to share with you is "How can we write HTML Code in view files? I am writing this article because many times we can not use CActiveForm to design our form...
tags: views, tutorial

Update a part of content using AJAX when select a GridView row

Created about a year ago by Kostas Apazidis (KonApaz)How-tos2 comments – viewed 12,812 times – ( +4 ) – version 1.1
Suppose you want to refresh a form or any content when a single row of CGridView is selected

How to hide `index` action from URL

Created 2 years ago by rootbearHow-tos2 comments – viewed 11,720 times – ( +3 / -2 ) – version 1.1
Here is my experiment inspired by my own question and others from the forum.
tags: index