Sorted by commentsX
Displaying 351-360 of 677 result(s).

custom sql query results to CDetailView

Created 9 months ago by KonApazHow-tos2 comments – viewed 11,362 times – ( +3 )
This is a bried guide about displaying of custom sql query results.

Remove Byte Order Mark (BOM) from files recursively

Created 9 months ago by KonApazHow-tos2 comments – viewed 4,571 times – ( +5 / -1 )
Ok, this wiki is not only for yii projects.

How to include Javascript, CSS

Created 9 months ago by InterboyHow-tos2 comments – viewed 281,556 times – ( +7 / -2 ) – version 1.1
There are many methods that we can include javascript, css into your Yii App. Today I will demonstrate three simple and helpul methods.

Automatic Parameter Binding to POST vars in Yii2

Created 8 months ago by aarondfrancisHow-tos2 comments – viewed 4,930 times – version 2.0
I wrote about this on my blog, but wanted to post it here too.
tags: yii2, controllers

XSS safe model content

Created 4 years ago by phirasTutorials2 comments – viewed 7,164 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 9,883 times – ( +9 ) – 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 8 months ago by KonApazHow-tos2 comments – viewed 4,525 times – ( +3 / -1 ) – version 1.1
Assume that you have teachers and students model.

Multiple Databases and Multiple Domains

Created 3 years ago by got 2 doodleTutorials2 comments – viewed 29,040 times – ( +14 / -2 ) – version 1.1
Add these lines in /config/main.php
tags: database

Access log output from unit tests

Created 2 years ago by MikeTips2 comments – viewed 4,966 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 7 months ago by kalpitHow-tos2 comments – viewed 5,611 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