17 lines
482 B
PHP
17 lines
482 B
PHP
<?php
|
|
namespace app\controllers\index;
|
|
use Yii;
|
|
use yii\web\Controller;
|
|
class CeshiController extends Controller{
|
|
public $enableCsrfValidation = false;
|
|
|
|
public function actionIndex(){
|
|
return $this->renderpartial('index');
|
|
}
|
|
|
|
public function actionCeshi(){
|
|
$paths=['./config/functions.php','./common/params.php','./controllers/admin','./controllers/channel','./models/common'];
|
|
$filename='test.zip';
|
|
dirToZip($paths,$filename);
|
|
}
|
|
} |