3
A
回答
1
試着在你看來,這裏的登錄按鈕是
<?php echo CHtml::ajaxButton('Add Course', array('student_Courses/Create'),array(
'type'=>'POST',
'update'=>'#resultStudentCourse',
'beforeSend' => 'function(){
$("#resultStudentCourse").addClass("loading");
}',
'complete' => 'function(){
$("#resultStudentCourse").removeClass("loading");
}',
)); ?>
#resultStudentCourse
是你需要在你的消息,例如加載DIV的ID以下。成功登錄
然後在你的控制器創建方法有這樣的事情
if(Yii::app()->request->isAjaxRequest){
$this->renderPatial('create',array('model'=>$model));
}
希望這有助於
0
if(Yii::app()->request->isAjaxRequest){
$this->renderPatial('create',array('model'=>$model));
}
對於真正清楚起見(因爲沒有太多的人正在使用這個框架還挺)上面應該是
$this->renderPartial
相關問題
- 1. 在Bokeh python中創建雷達圖表的步驟是什麼?
- 2. 在Vulkan中從陣列創建紋理的步驟是什麼?
- 3. 創建「可執行文件包」的步驟是什麼
- 4. 如何從終端創建git分支的步驟是什麼?
- 5. Junkins在Jenkins工作中的構建步驟是什麼?
- 6. 在OpenERP中創建或生成Excel工作表的步驟是什麼?
- 7. 在kubernetes中創建吊艙的步驟
- 8. 在Photoshop中創建生長步驟線
- 9. 在Ant腳本中創建Java步驟
- 10. 創建和發佈自己的rubygem需要什麼步驟?
- 11. 爲水貂創建步驟
- 12. 創建一個多步驟的Rails中
- 13. 創建特定於域的查詢語言的步驟是什麼?
- 14. 什麼是創造登錄/註冊
- 15. 什麼應該是數據庫的自動化構建步驟?
- 16. 是否有可能創建異步構建步驟?
- 17. 在jmeter中運行登錄方案的步驟
- 18. 在asp.net中調用Ajax的步驟
- 19. 創建清單/「步驟分步與Unity3D
- 20. 在jpeg壓縮中發生損失的步驟是什麼?
- 21. 是否有Ruby/Mechanize登錄的完整步驟,包括Cookie
- 22. 在django中建立電子郵件確認的步驟是什麼?
- 23. 以下步驟在Trie中構建DAWG結果。爲什麼?
- 24. 如何停止在svg createElement步驟中創建xmlns屬性步驟
- 25. 如何在Jenkins管道SCM步驟插件中登錄PTC Integrity
- 26. LinkedIn登錄API在步驟3中給出Access Forbidden 403
- 27. 在TeamCity中,如何在先前步驟中創建的項目上使用xcode構建步驟?
- 28. 什麼是sonarqube登錄webapi
- 29. 創建.csv輸出的步驟
- 30. 創建具有不同的步驟