| 123456789101112131415161718192021222324252627282930313233343536 | 
							- <?php
 
- /**
 
-  * Created by PhpStorm.
 
-  * User:  NODELOG
 
-  * Date: 16/7/4
 
-  * Time: 下午1:46
 
-  */
 
- namespace plugins\statistics;
 
- use yii\base\BootstrapInterface;
 
- use yii\web\View;
 
- use yii\base\Event;
 
- class Plugin extends \plugins\Plugin implements BootstrapInterface
 
- {
 
-     public $info = [
 
-         'author' => 'nodelog',
 
-         'version' => 'v1.0',
 
-         'id' => 'statistics',
 
-         'name' => '第三方统计',
 
-         'description' => '第三方统计'
 
-     ];
 
-     public function bootstrap($app)
 
-     {
 
-         Event::on(View::className(), 'endBody', [$this, 'run']);
 
-     }
 
-     public function run()
 
-     {
 
-         $config = $this->getConfig();
 
-         echo $config['statistics_content'];
 
-     }
 
- }
 
 
  |