Ejemplo n.º 1
0
 /**
  * play()
  *
  * 主処理を行う
  *
  * @access    public
  *
  * @param     void
  *
  * @return    void    なし
  */
 public function play()
 {
     // ユーザ定義のライブラリコール例
     \RisolutoUserLibs\SampleLibs::sampleMethod();
     // ヘッダ情報のセット
     $header = $this->getDefaultHeader();
     $header = $this->replaceHeader($header, 'robots', 'NOINDEX,NOFOLLOW');
     // テンプレートエンジン関連の処理
     $assign_value = ['header' => $header];
     $this->risolutoView($assign_value);
 }
Ejemplo n.º 2
0
 /**
  * play()
  *
  * 主処理を行う
  *
  * @access    public
  *
  * @param     void
  *
  * @return    void    なし
  */
 public function play()
 {
     // ユーザ定義のライブラリコール例
     \RisolutoUserLibs\SampleLibs::sampleMethod();
     //--- DB関連の操作(ここから)
     // モデルインスタンスを作成する
     $model = new Sample4Model();
     // モデルの初期処理を実行
     $dat = '';
     if ($model->begin()) {
         // 全データを取得する
         $dat = $model->getAll();
         // モデルの最終処理を実行
         $model->end();
     }
     //--- DB関連の操作(ここまで)
     // ヘッダ情報のセット
     $header = $this->getDefaultHeader();
     $header = $this->replaceHeader($header, 'robots', 'NOINDEX,NOFOLLOW');
     // テンプレートエンジン関連の処理
     $assign_value = ['header' => $header, 'dat' => $dat];
     $this->risolutoView($assign_value);
 }