ahmadasjad / yii2plusyii1
A library to use yii1 and Yii2 together
Installs: 681
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/ahmadasjad/yii2plusyii1
Requires
- yiisoft/yii: ^1.1
- yiisoft/yii2: ^2.0
This package is auto-updated.
Last update: 2025-10-12 14:58:25 UTC
README
First go through this repo to get the complete idea of using Yii2 with yii1: https://github.com/ahmadasjad/yii1plusyii2
- add
returnbeforerender('yourView', ['model' => $model])call inside every controller. ** - Remove echo from your controller, and return all the echo part with a single return statement **
- Add
echobefore every widget call inside the view **