Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace app\controllers;
- use Yii;
- use yii\filters\AccessControl;
- use yii\web\Controller;
- use app\models\Komentar;
- class KomentarController extends \yii\web\Controller
- {
- public funtion actionForm()
- {
- $model = new Komentar;
- return $this->render("form",["model" => $model]);
- }
- public function actionKirim()
- {
- $model = new Komentar;
- $model->load(\Yii::$app->request->post());
- return $this->render("hasil",["model" => $model]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement