¿Me pueden ayudar por favor para la conexión?
Código:
mikehove.- "Vivir es un desafío y de valientes" class Helper { private static $router = array ( '/' => array( 'column' => 'columns/tabOne/columnA.php', 'content' => 'content/tabOne/contentA.php' ), '/index' => array( 'column' => 'columns/tabOne/columnA.php', 'content' => 'content/tabOne/contentA.php' ), '/contentAtabOne' => array( 'column' => 'columns/tabOne/columnA.php', 'content' => 'content/tabOne/contentA.php' ), '/contentBtabOne' => array( 'column' => 'columns/tabOne/columnA.php', 'content' => 'content/tabOne/contentB.php' ), '/tabTwo' => array( 'content' => 'content/tabTwo.php' ), '/tabThree' => array( 'content' => 'content/tabThree.php' ), '/tabFour' => array( 'content' => 'content/tabFour.php' ) ); public static function getColumn($file = null ) { if (array_key_exists($file, self::$router) && isset(self::$router[$file]['column'])) { ob_start(); is_file(self::$router[$file]['column']); require_once(self::$router[$file]['column']); return ob_get_clean(); } } public static function getContent($file = null) { if (array_key_exists($file, self::$router) && is_file(self::$router[$file]['content'])) { ob_start(); require_once(self::$router[$file]['content']); return ob_get_clean(); } } }