logo
  • 教程列表
  • SO官方文檔
  • Pjax
    • 第 1 步新增結構
    • 如何使用 pjax
    • 第 2 步伺服器端程式碼
    • Pjax 高階用法
  1. StackOverflow 文件
  2. yii2 教程
  3. Pjax
  4. 第 2 步伺服器端程式碼

第 2 步伺服器端程式碼

Created: November-22, 2018

public function actionFormSubmission()
{
    $security = new Security();
    $string = Yii::$app->request->post('string');
    $stringHash = '';
    if (!is_null($string)) {
        $stringHash = $security->generatePasswordHash($string);
    }
    return $this->render('form-submission', [
        'stringHash' => $stringHash,
    ]);
}
  • Pjax 高階用法
  • 如何使用 pjax

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明