Wiki

Sorted by date (updated)X
Displaying 11-20 of 784 result(s).

Facebook DeAuthorize callback URL and its response data.

Updated about a month ago by sirin kTutorials1 comment – viewed 13,670 times – ( +3 / -1 ) – version 1.1
Facebook Deauthorize callback is used to getting notification to the app owner when a user uninstall our app from their fan page or profile.
tags: facebook

An important tip when you are using CArrayDataProvider.

Updated about a month ago by sirin kTips0 comments – viewed 12,352 times – ( +8 / -2 ) – 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”.

Ajax form submiting in Yii

Updated about a month ago by sirin kTutorials8 comments – viewed 130,512 times – ( +13 / -6 ) – version 1.1
hi guys, Here I'm going to give you a working example of ajax form submiting in Yii.

How to make UrlManager createAbsoluteUrl work with sub-domains

Updated about a month ago by Wade ShulerHow-tos0 comments – viewed 2,078 times – ( +1 / -1 ) – version 2.0
Upon creating my Yii2 Members System, I have ran into a few snags along the way that forced me to extend and bend Yii2 to my will.

i18n All-in-one format and timezone conversions for date, time, timestamp and datetime.

Updated 2 months ago by Gerhard LiebenbergHow-tos3 comments – viewed 21,041 times – ( +8 / -2 ) – version 1.1
Countries sometimes change their laws pertaining to time zones and daylight saving times. This means that GMT+2 can be a different local time this August compared to last August! It could even be a different date!

Show raw SQL query

Updated 4 months ago by dariooFAQs0 comments – viewed 7,495 times – ( +2 / -1 ) – version 2.0
Here's a quick tip to dump the SQL for query.

Using loginRequiredAjaxResponse to solve ajax session timeout

Updated 4 months ago by RutgerHow-tos3 comments – viewed 26,823 times – ( +13 / -1 ) – version 1.1
This solution requires Yii 1.1.9 or above

How to create/update a model with its related items using Listbox or CheckboxList

Updated 5 months ago by softarkTutorials1 comment – viewed 11,922 times – ( +4 / -1 ) – version 2.0
Assume we have many categories and many posts.

How to "masquerade" a non-required form element as 'required' one (in the view only)

Updated 5 months ago by mrunHow-tos2 comments – viewed 14,783 times – ( +7 / -2 ) – version 1.1
In a nutshell, the task at hand is to mark (or render) a model attribute in the typical "_form.php" view file with the 'required' red asterisk while this attribute is not marked as required in the model's rule() method. If you're interested only in the solution, jump ahead to the 'solution' section below.

Interactive mode command-line command for Yii1

Updated 6 months ago by TrejderHow-tos0 comments – viewed 5,275 times – ( -1 ) – version 1.1
For one of my projects I needed an interactive console command in Yii 1, i.e. the one that is gathering all information from user in an interactive mode (a serie of questions and answers displayed directly in the console), ignoring command-line arguments at all.