Yii v2 snippet guide

Comparing #213 with #214

Revision #214 was created by rackycz rackycz on Jul 17, 2020, 7:06:29 AM.

xdebug

Content

[...]
I was suprised that the Yii 2 demo application does not contain some basic functionalities (like login via DB, translations etc) which must be implemented in the most of web projects so I will focus on them. Plus I will talk about GitLab.

If you find any problems in my snippets, let me know, please.

.
 
 
.
 
 
**Prerequisities**
---
Skip this paragraph if you know how to run your Yii demo project...
[...]
The result is that your form has 3 rows, the middle one is empty. In the first row there are 3 cells (username, nothing, email) and in the last row there is 2x password.

You do not have to write any HTML, you only arrange inputs into any number of rows and columns (using the array $gridForm) and things just happen automagically.

 
 
**Netbeans + Xdebug**
 
---
 
Note: I am using Windows 10 + XAMPP
 
 
I had to follow 2 manuals:
 
- [https://www.codewall.co.uk/debug-php-with-xdebug-on-netbeans](https://www.codewall.co.uk/debug-php-with-xdebug-on-netbeans/)
 
- [https://stackoverflow.com/questions/2963027/netbeans-xdebug-php-not-working](https://stackoverflow.com/questions/2963027/netbeans-xdebug-php-not-working)
 
 
The result in C:\xampp\php\php.ini was:
 
 
```
 
[XDebug]
 
zend_extension = c:\xampp\php\ext\php_xdebug.dll
 
xdebug.remote_enable = on
 
xdebug.idekey = netbeans-xdebug
 
xdebug.remote_host = localhost
 
xdebug.remote_port = 9000
 
xdebug.remote_autostart=on
 
```
 
 
Quotes were not important. I didnt even need to [download](https://xdebug.org/download) current version of xdebug, it was already in folder C:\xampp\php\ext.