Difference between #27 and #28 of
Yii3 - How to start

Revision #28 has been created by rackycz rackycz on Oct 13, 2025, 7:40:34 AM with the memo:

edit
« previous (#27) next (#29) »

Changes

Title unchanged

Yii3 - How to start

Category unchanged

Tutorials

Yii version unchanged

3.0

Tags unchanged

Content changed

[...]
Note:
- Instead of installing local WAMP- or XAMPP-server I will be using Docker.
- Do not forget about a modern IDE like PhpStorm, which comes bunled with all you will ever need.

> All the code will be soon available in my new [GitHub repository](https://github.com/rackycz/yii3api). I will be using is as a boiler-plate for my future projects so it should be always up to date.
 
 
# Yii3 - How to start

Yii3 offers more basic applications: Web, Console, API. I will be using the API application:
[...]
... then the web will be available on URL
- http://localhost:80

 
If you check the returned data you will see a `<xml>` inside the browser. In order to obtain JSON-response, paste the URL into Postman. (so called "content negotiation" does this auto-decision)run via browser, XML is returned
 
- If run via Postman or Ajax, JSON is returned


If you want to modify the data that was returned by the endpoint, just open the action-class `src/Api/IndexAction.php` and add one more element to the returned array.

## Adding DB into your project
[...]
2 0
4 followers
Viewed: 13 060 times
Version: 3.0
Category: Tutorials
Tags:
Written by: rackycz rackycz
Last updated by: rackycz rackycz
Created on: Oct 8, 2025
Last updated: a month ago
Update Article

Revisions

View all history