修改登陆事件
This commit is contained in:
42
extend/catcher/generate/template/Content.php
Normal file
42
extend/catcher/generate/template/Content.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
namespace JaguarJack\Generator\Template;
|
||||
|
||||
trait Content
|
||||
{
|
||||
public function header()
|
||||
{
|
||||
$year = date('Y', time());
|
||||
|
||||
return <<<TMP
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | CatchAdmin [Just Like ~ ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: JaguarJack [ njphper@gmail.com ]
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
TMP;
|
||||
}
|
||||
|
||||
/**
|
||||
* set namespace
|
||||
*
|
||||
* @time 2020年04月27日
|
||||
* @param $namespace
|
||||
* @return string
|
||||
*/
|
||||
public function nameSpace($namespace)
|
||||
{
|
||||
return <<<TMP
|
||||
namespace {$namespace};
|
||||
|
||||
|
||||
TMP;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user