Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 101-110 of 306 result(s).

Elementary introduction to using jQuery ajax and the yii framework

Created about a year ago by dhimesHow-tos4 comments – viewed 26,259 times – ( +6 ) – version 1.1
In doing internet searches trying to learn how to incorporated ajax into web pages generated by the yii framework I noticed that there seems to be a lot of confusion. I worry that too-clever hacks will be broken in upgrades of the framework.
tags: AJAX

javascript + tabular input

Created 3 years ago by zaccariaHow-tos4 comments – viewed 25,857 times – ( +14 / -1 ) – version 1.1
If you tried this extension with success, maybe you thought how to do it without page submission or ajax calls.

Keeping a running total in a CGridView

Created 3 years ago by Steve FriedlHow-tos4 comments – viewed 22,018 times – ( +24 ) – version 1.1
This tip created in conjunction with IRC #yii channel users emilsedgh and tydeas - thanks!
tags: CGridView

Cheat Sheet: Displaying Name instead of Numbers and Displaying Alphanumeric instead of numeric values

Created about a year ago by skwordenHow-tos4 comments – viewed 12,409 times – ( +4 / -1 ) – version 1.1
I keep a reference to some simple but painful task if you forget a common or something. I am new to Yii and this took awhile for me to figure out. Everything I read said do this or do that and not a single one worked for me. However, the following did.

Updating fields on a form with Ajax and Json

Created 3 years ago by Russell EnglandHow-tos4 comments – viewed 44,521 times – ( +12 / -1 ) – version 1.1
I'm developing a website that has an option to look up a car's registration number via SOAP and return additional details such as make, model, colour etc.

Save and Display Date/Time Fields in different formats in Yii2

Created 3 months ago by Kartik VHow-tos4 comments – viewed 3,005 times – ( +24 ) – version 2.0
You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.

Render a form in a Modal Popup using ajax

Created 3 months ago by thiagoc7How-tos4 comments – viewed 7,100 times – ( +4 ) – version 2.0
Nowdays is very common webapps use this feature. With Yii2 this is very easy.
tags: yii2, AJAX, modal

Using International Dates

Created 3 years ago by Russell EnglandHow-tos4 comments – viewed 28,554 times – ( +18 ) – version 1.1
I needed British (dd/mm/yyyy) formatted dates throughout my application but found it very difficult to find examples of how to do this - until I found this excellent forum post http://www.yiiframework.com/forum/index.php?/topic/3649-dealing-with-i18n-date-formats/

Sub-domains with different databases in Yii!

Created 3 years ago by jwerdHow-tos4 comments – viewed 11,860 times – ( +2 ) – version 1.1
Sub-domains with different databases in Yii!

Alternative folder structure for a standard Yii app

Created about a year ago by TrejderHow-tos4 comments – viewed 7,843 times – ( +5 ) – version 1.1
I found a standard Yii app's protected folder structure nearly perfect. With a few simple moves and a little bit change to the code, I managed to bring it to the level, which I found as fully perfect. I want to share my point of view, in case someone would like to use this structure as well.