How can I just return the file name. $image is printing absolute path name? <?php $directory = Yii::getPat
I am new to Yii framework, and just came across module, extension & component inside protected folder. Ca
I am building an API for a website using Yii. I know that there is a utility class called CJson and has a func
As the title clarifies why is the auth key introduced in Yii2? What're it's main usages and how it i
I am using Yii framework for my project; I am redirecting page after success of insertion in database to a
I want to force all users to log in before accessing pages of my site. I have followed Larry Ullman's tut
I use postgresql and yii2 framework. Well I got a very interesting error message: SQLSTATE[23502]: Not null v
In the API documentation it is specified that $joinWith - A list of relations that this query should be j
I have a table like this: (id, name, version, text). (name, version) is unique key, how can i make a rule to v
I am trying to hide the label for a specific field in _form.php without success. I have tried couple of varia
What is the active Record way of adding IN condition to an active Query in yii 1.x you could use CDbCriteria l
I recently started to work with yii, where can i find the yii version of my yii app?
I am trying to get the base URL for the project in Yii 2 but it doesn't seem to work. According to this p
I can't finally understand how to use the swiftMailer extension in Yii2. Judging by that on this subject
I've been using Yii's active record pattern for a while. Now, my project needs to access a differen
I'm trying to send a Get request by ajax and output json data that is returned by server in html. But, I
How, in Yii, to get the current page's URL. For example: http://www.yoursite.com/your_yii_application/?l