/** * ExtLoader::getInstance() * * @param mixed $prefix * @return */ public static function getInstance($prefix) { self::$prefix = $prefix; if (self::$instance === false) { self::$instance = new ExtLoader(); } return self::$instance; }
public static function ExtInyection() { ExtLoader::BasicCSSInyection(); ExtLoader::BasicJSInyection(); }
<?php /** * ExtPHP framework * @author Pavel Kral * @version 2011 */ //............................................................................................................................................................................................................... //error_reporting(0); define('LOADER_PREFIX', ''); error_reporting(E_ALL ^ E_NOTICE); //error_reporting(E_ALL); session_start(); require_once "config.php"; require_once "lib/ExtPHP/ExtLoader.php"; $loader = ExtLoader::getInstance(LOADER_PREFIX); // $debug = new ExtDebugger; // $connection = new ExtDbConnection; // mysql_query("SET CHARACTER SET utf8"); $application = ExtApplication::getApplication(); $application->setRouter(new ExtRouter()); // $application->secureApp('user_logs','Login'); $application->run(); // $connection -> close(); //.............................................................................................................................................................................................................. ?>
background-image:url(<?php echo $pageAttributes->get("exturl"); ?> /examples/shared/icons/fam/folder_wrench.png); } .nav { background-image:url(<?php echo $pageAttributes->get("exturl"); ?> /examples/shared/icons/fam/folder_go.png); } </style> <!-- GC --> <!-- LIBS --> <?ExtLoader::BasicJSInyection();?> <!-- EXAMPLES --> <script type="text/javascript" src="<?php echo $pageAttributes->get("exturl"); ?> /examples/shared/examples.js"></script> <script type="text/javascript"> Ext.onReady(function(){ // NOTE: This is an example showing simple state management. During development, // it is generally best to disable state management as dynamically-generated ids // can change across page loads, leading to unpredictable results. The developer // should ensure that stable state ids are set for stateful components in real apps. Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); <?