WIP : Install wizard
This commit is contained in:
@@ -42,9 +42,10 @@ class InstallController extends BaseInstallController
|
|||||||
|
|
||||||
public function checkPermission()
|
public function checkPermission()
|
||||||
{
|
{
|
||||||
|
var_dump('step2');
|
||||||
//$this->verifyStep(2);
|
//$this->verifyStep(2);
|
||||||
|
|
||||||
//$permission = new CheckPermission();
|
$permission = new CheckPermission();
|
||||||
|
|
||||||
$this->getSession()->set("step", 2);
|
$this->getSession()->set("step", 2);
|
||||||
return $this->render("step-2.html");
|
return $this->render("step-2.html");
|
||||||
|
|||||||
@@ -31,9 +31,10 @@ namespace Thelia\Install;
|
|||||||
*/
|
*/
|
||||||
class CheckPermission extends BaseInstall
|
class CheckPermission extends BaseInstall
|
||||||
{
|
{
|
||||||
const CONF = "const";
|
|
||||||
const LOG = "log";
|
const DIR_CONF = 'local/config';
|
||||||
const CACHE = "cache";
|
const DIR_LOG = 'log';
|
||||||
|
const DIR_CACHE = 'cache';
|
||||||
|
|
||||||
private $directories = array();
|
private $directories = array();
|
||||||
private $validation = array();
|
private $validation = array();
|
||||||
@@ -44,22 +45,22 @@ class CheckPermission extends BaseInstall
|
|||||||
|
|
||||||
|
|
||||||
$this->directories = array(
|
$this->directories = array(
|
||||||
self::CONF => THELIA_ROOT . "local/config",
|
self::DIR_CONF => THELIA_ROOT . 'local/config',
|
||||||
self::LOG => THELIA_ROOT . "log",
|
self::DIR_LOG => THELIA_ROOT . 'DIR_LOG',
|
||||||
self::CACHE => THELIA_ROOT . "cache"
|
self::DIR_CACHE => THELIA_ROOT . 'DIR_CACHE'
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->validation = array(
|
$this->validation = array(
|
||||||
self::CONF => array(
|
self::DIR_CONF => array(
|
||||||
"text" => sprintf("config directory(%s)...", $this->directories[self::CONF]),
|
"text" => sprintf("config directory(%s)...", $this->directories[self::DIR_CONF]),
|
||||||
"status" => true
|
"status" => true
|
||||||
),
|
),
|
||||||
self::LOG => array(
|
self::DIR_LOG => array(
|
||||||
"text" => sprintf("cache directory(%s)...", $this->directories[self::LOG]),
|
"text" => sprintf("DIR_CACHE directory(%s)...", $this->directories[self::DIR_LOG]),
|
||||||
"status" => true
|
"status" => true
|
||||||
),
|
),
|
||||||
self::CACHE => array(
|
self::DIR_CACHE => array(
|
||||||
"text" => sprintf("log directory(%s)...", $this->directories[self::CACHE]),
|
"text" => sprintf("DIR_LOG directory(%s)...", $this->directories[self::DIR_CACHE]),
|
||||||
"status" => true
|
"status" => true
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user