Wiki

Sorted by date (updated)X
Displaying 21-30 of 786 result(s).

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

Updated 9 months ago by Luis Lobo BorobiaTips0 comments – viewed 7,003 times – ( +2 / -1 ) – version all
We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.

How to make UrlManager createAbsoluteUrl work with sub-domains

Updated 10 months ago by Wade ShulerHow-tos1 comment – viewed 11,032 times – ( +2 / -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 11 months ago by Gerhard LiebenbergHow-tos3 comments – viewed 22,682 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 about a year ago by dariooFAQs0 comments – viewed 28,176 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 about a year ago by RutgerHow-tos3 comments – viewed 28,493 times – ( +13 / -1 ) – version 1.1
This solution requires Yii 1.1.9 or above

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

Updated about a year ago by mrunHow-tos2 comments – viewed 16,502 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 about a year ago by TrejderHow-tos0 comments – viewed 8,503 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.

REST API and null values in XML

Updated about a year ago by marko60Tips0 comments – viewed 8,791 times – ( -1 ) – version 2.0
I have been working on a REST API using the excellent tools provided by Yii2. My problem was that I have to differentiate between empty values and null values. In other words, <elem></elem> is different from null as it represents an empty string. Also, although some use <elem/> to represent a null value it should still be interpreted as an empty string. In other cases, the absence of the element is taken to represent a null value, but this may create problem with some parsers.
tags: REST, XML, null

Optimize Scenarios for yii2

Updated about a year ago by AndroideLPTutorials0 comments – viewed 11,040 times – ( +1 / -1 ) – version 2.0
Working with scenarios, with models that can receive many modifications in their rules or structures as development evolves, can create disruptions in the rescue process.

Yii2 GridView Sorting and Searching with a Junction Table Column(Many to Many Relationship)

Updated about a year ago by Amjad KhanTutorials3 comments – viewed 25,685 times – ( +5 / -1 ) – version 2.0
Following is the table structure