Difference between #56 and #57 of
Yii v2 snippet guide III

Revision #57 has been created by rackycz on Mar 9, 2021, 10:40:22 AM with the memo:

Search
« previous (#56) next (#58) »

Changes

Title unchanged

Yii v2 snippet guide III

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,yii2,beginer

Content changed

[...]
return $this->redirect('controller/action')->send(); // NO
return $this->redirect(['controller/action'])->send(); // YES

search: ->redirect\((['][^']*['])\)
replace: ->redirect\([$1]\)
```
 
**PHP short tags**
 
 
```
 
search: (<\?)([^p=]) // <?if ...
 
replace: $1php $2 // <?php if ...
 
// note that sometimes <?xml can be found and it is valid, keep it
 
 
```


**Running Yii project in Vagrant. (Simplified version)**
---

*Info: This chapter works with PHP 7.0 in ScotchBox. If you need PHP 7.4, read next chapter where CognacBox is used (to be added when tested)*
[...]
8 0
4 followers
Viewed: 165 015 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Jan 21, 2021
Last updated: 9 months ago
Update Article

Revisions

View all history