class MyWidget extends CWidget
{
public function init()
{
// this method is called by CController::beginWidget()
}
public function run()
{
// this method is called by CController::endWidget()
}
}
通常,widget的视图是是放在components/views里面的,通过CWidget::render()来传递参数的

相关文章:

  • 2021-11-18
  • 2022-03-04
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
  • 2022-12-23
  • 2021-08-09
猜你喜欢
  • 2021-12-23
  • 2021-12-30
  • 2021-07-25
  • 2021-06-21
  • 2021-07-28
  • 2022-12-23
  • 2021-10-03
相关资源
相似解决方案