Wiki

Sorted by ratingX
Displaying 391-400 of 719 result(s).

Create thermometer using rgraph

Created about a year ago by Ankit ModiTips2 comments – viewed 4,744 times – ( +4 )
Hi friends,

How to obtain a grammatically correct translation of the model name in giix-generated view files

Created 2 years ago by c@cbaHow-tos0 comments – viewed 8,926 times – ( +4 ) – version 1.1
The giix code generator has out of the box i18n support for model names and attribute labels (besides other cool features > check it out!) . But I want to factor in not only the plural form, but also the grammatical cases (especially the accusative) while translating 'Manage Objects', 'Create Object', 'Edit Object' etc.

How to use default layout for error pages instead of errorXXX views

Created 5 years ago by idle signTutorials1 comment – viewed 18,768 times – ( +4 ) – version 1.1
The issue is covered in "The Definite Guide to Yii" (Error Handling - Handling Errors Using an Action).

Deploy yii on pagoda box

Created 2 years ago by francis jaTutorials0 comments – viewed 6,672 times – ( +4 ) – version 1.1
pagoda box is very useful tool for a programmer to test their php app online so its very useful one. For deploying code pagodabox use git command
tags: pagodabox, pagoda

Create a custom menu using CMenu data-items (flat or tree structure)

Created about a year ago by KonApazHow-tos0 comments – viewed 11,720 times – ( +4 )
There are cases that you want more control to your menu Suppose you want a specific menu with complex css, layout, images. also you want to add extra content,html,css,javascript etc it run time foreach submenu item by conditions.

How to catch and log MySQL deadlock errors

Created 2 years ago by sebTips1 comment – viewed 8,843 times – ( +4 ) – version 1.1
This method allows to log InnoDB monitor output when deadlock error occured. This way we will have much more useful data to find and fix deadlock.
tags: database

XSS safe model content

Created 4 years ago by phirasTutorials2 comments – viewed 7,701 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.

List with multiple checkbox

Created 4 years ago by matkazTutorials3 comments – viewed 25,771 times – ( +4 ) – version 1.1
It is a common case coders often come accross. For example the purpose of these checkbox is to mark records to be deleted

CSV Export

Created 2 years ago by JohnPollardHow-tos5 comments – viewed 12,102 times – ( +4 ) – version 1.1
I needed a csv export function for my cgridview and I wanted to export the entire result set of the sorted and filtered cgridview the user was viewing via ajax.
tags: csv, export

Access log output from unit tests

Created 2 years ago by MikeTips2 comments – viewed 5,440 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.