初始上传
This commit is contained in:
30
app/component/controller/RubikCube.php
Executable file
30
app/component/controller/RubikCube.php
Executable file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace app\component\controller;
|
||||
|
||||
/**
|
||||
* 魔方·组件
|
||||
*/
|
||||
class RubikCube extends BaseDiyView
|
||||
{
|
||||
|
||||
/**
|
||||
* 前台输出
|
||||
*/
|
||||
public function parseHtml($attr)
|
||||
{
|
||||
if (!empty($attr['diyHtml'])) {
|
||||
$attr['diyHtml'] = str_replace(""", '"', $attr['diyHtml']);
|
||||
}
|
||||
$this->assign("attr", $attr);
|
||||
return $this->fetch('rubik_cube/rubik_cube.html');
|
||||
}
|
||||
|
||||
/**
|
||||
* 后台编辑界面
|
||||
*/
|
||||
public function design()
|
||||
{
|
||||
return $this->fetch("rubik_cube/design.html");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user