Last active
September 15, 2017 14:56
-
-
Save Bizunow/b3f598e77d03c372eae1aab8a0b84ae8 to your computer and use it in GitHub Desktop.
[Yii GET/POST param] #php #yii
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Yii 1 | |
Yii::app()->request->getParam('q'); | |
// Yii 2? | |
Yii::$app->request->post('var'); | |
Yii::$app->request->get('var'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment