need to add multi site feature
im currently useing this in my vork file
<code>
class configDefaults extends configInit {
/* ..
.. */
protected static $_MVCpath = null;
/* ..
.. */
public function __construct() {
self::$_MVCpath = 'mvc' . self::DS . $_SERVER['SERVER_NAME'] . self::DS;
/* ... */
if ($this->pathToMvc === null) {
$this->pathToMvc = configDefaults::basepath() . self::$_MVCpath ;
/* ... */
if (isset($_SERVER['SCRIPT_NAME']) && $_SERVER['SCRIPT_NAME'] == '/public_html/index.php') {
$this->pathToMvc = $_SERVER['DOCUMENT_ROOT'] . self::DS . self::$_MVCpath ;
}
if(!is_dir($this->pathToMvc)){
load::redirect('https://matusiakfamily.com/','10');
}
}/* ..
.. */
}/* ..
.. */
}
<code>
Me
<code>
class configDefaults extends configInit {
/* ..
.. */
protected static $_MVCpath = null;
/* ..
.. */
public function __construct() {
self::$_MVCpath = 'mvc' . self::DS . $_SERVER['SERVER_NAME'] . self::DS;
/* ... */
if ($this->pathToMvc === null) {
$this->pathToMvc = configDefaults::basepath() . self::$_MVCpath ;
/* ... */
if (isset($_SERVER['SCRIPT_NAME']) && $_SERVER['SCRIPT_NAME'] == '/public_html/index.php') {
$this->pathToMvc = $_SERVER['DOCUMENT_ROOT'] . self::DS . self::$_MVCpath ;
}
if(!is_dir($this->pathToMvc)){
load::redirect('https://matusiakfamily.com/','10');
}
}/* ..
.. */
}/* ..
.. */
}
<code>
Me
Posted Jun. 4, 2011 by Bradley Matusiak
Good suggestion, definitely will be considered for future Vork versions; but what advantage would this yield over having two separate Vork installations, one for each site?
Posted Jun. 9, 2011 by Eric David