public static function fnAutoLoad($controller, $action)
 {
     if (class_exists($controller . "Dependence")) {
         $lstClaseDependence = $controller . "Dependence";
         $lobClassDependece = new $lstClaseDependence();
         if (!method_exists($lobClassDependece, $action)) {
             throw new Exception("Acción no definida 8");
         } else {
             $larDependencias = call_user_func_array(array($lobClassDependece, $action), array());
         }
     } else {
         throw new Exception("Dependencia no identificada 6");
     }
     // Buscamos en cada ruta los archivos
     while (list($k, $v) = each($larDependencias['Archivos'])) {
         foreach ($v as $path) {
             PhpClass::import($path);
         }
     }
 }
Example #2
0
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 * 
 * This program incorporates work covered by the following copyright and
 * permission notices:
 * 
 * DropsizeMVCf is (c) 2013, 2015 
 * Isaac Trenado - isaac.trenado@codigolimpio.com -
 * http://www.codigolimpio.com
 * 
 * Wherever third party code has been used, credit has been given in the code's comments.
 *
 * DropsizeMVCf is released under the GPL
 * 
 */
/**
 * Main drop
 * 
 * @package com.dropsizemvcf
 * @author  Isaac Trenado
 * @since   1.0.0
 */
error_reporting(E_ALL);
ini_set("display_errors", 1);
define('_DSEXEC', 1);
define('FPATH_BASE', dirname(__FILE__));
require_once FPATH_BASE . '/utils/PhpClass.php';
PhpClass::import(FPATH_BASE . "/utils/legacy/defines");
PhpClass::import(FPATH_LIBRARIES . "/legacy/framework");
Example #3
0
 * 
 * This program incorporates work covered by the following copyright and
 * permission notices:
 * 
 * DropsizeMVCf is (c) 2013, 2015 
 * Isaac Trenado - isaac.trenado@codigolimpio.com -
 * http://www.codigolimpio.com
 * 
 * Wherever third party code has been used, credit has been given in the code's comments.
 *
 * DropsizeMVCf is released under the GPL
 * 
 */
/**
 * Import and Run APP invoke all BO CO MO DE.
 * here goes all library for default too can use path_library PHP
 * 
 * @package com.dropsizemvcf.utils.legacy.framework
 * @author  Isaac Trenado
 * @since   1.0.0
 */
defined('_DSEXEC') or die;
PhpClass::import(FPATH_LIBRARIES . DIRECTORY_SEPARATOR . "Slim" . DIRECTORY_SEPARATOR . "Slim");
PhpClass::import(FPATH_LIBRARIES . DIRECTORY_SEPARATOR . "Slim" . DIRECTORY_SEPARATOR . "LogWriter");
PhpClass::import(FPATH_LIBRARIES . DIRECTORY_SEPARATOR . "Slim" . DIRECTORY_SEPARATOR . "Log");
PhpClass::import(FPATH_LIBRARIES . DIRECTORY_SEPARATOR . "Model");
PhpClass::import(FPATH_LIBRARIES . DIRECTORY_SEPARATOR . "Controller");
PhpClass::import(FPATH_LIBRARIES . DIRECTORY_SEPARATOR . "legacy" . DIRECTORY_SEPARATOR . "aplicacion");
$hostname = "log";
$app = FDropSize::Instance($hostname);
$app->run();