-1

私はphpを持っています:

public function __construct($config) {
    if (!session_id()) {
      session_start();
    }
    parent::__construct(Array $config) { // line no 52 
      if (!empty($config['sharedSession'])) {
        $this->initSharedSession();
      }
   }
 } 

52 行目はT_VARIABLE. 私は断念しました。私は何をしますか。

4

2 に答える 2

0

問題 :

parent::__construct(Array $config) {
    if (!empty($config['sharedSession'])) {
       $this->initSharedSession();
    }
}

このように親コンストラクターを呼び出すことはできません。コードを変更する必要があります

parent::__construct(Array $config);
于 2013-09-04T10:37:13.737 に答える