fr0d0z, on 26 March 2013 - 10:28 AM, said:
thanks fr0d0z !! what a relief to know that they can work together, your reply is much appreciated!
Now I can work out our plans and see which way we want to go.
Posted 26 March 2013 - 06:28 PM
fr0d0z, on 26 March 2013 - 10:28 AM, said:
Posted 26 March 2013 - 06:40 PM
fr0d0z, on 26 March 2013 - 10:28 AM, said:
Posted 28 March 2013 - 01:37 PM
dualsun, on 26 March 2013 - 06:40 PM, said:
dualsun, on 26 March 2013 - 06:40 PM, said:
Posted 02 July 2013 - 10:59 AM
$config = ABSPATH.'protected/config/admin.php'; // path to config to admin section require(ABSPATH.'framework/YiiBase.php'); // include YiiBase // overrides Yii class class Yii extends YiiBase { // override Yii autolad public static function autoload($className) { $wp_classes = array( 'Translation_Entry', 'Translations', 'NOOP_Translations', 'POMO_Reader', 'POMO_FileReader', 'POMO_StringReader', 'POMO_CachedFileReader', 'POMO_CachedIntFileReader', 'MO', '_WP_Editors', ); if(!in_array($className, $wp_classes)) YiiBase::autoload($className); } } // remove the following lines when in production mode defined('YII_DEBUG') or define('YII_DEBUG',true); // specify how many levels of call stack should be shown in each log message defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); // unregister default Yii autoload and register new spl_autoload_unregister(array('YiiBase', 'autoload')); spl_autoload_register(array('Yii','autoload')); // create new aliases to models and components directories Yii::setPathOfAlias( 'models', ABSPATH.'protected/models/' ); Yii::setPathOfAlias( 'components', ABSPATH.'protected/components/' ); // create Yii application, but not run it Yii::createWebApplication($config);
return array( 'basePath'=>ABSPATH, 'runtimePath' => ABSPATH.'protected/runtime', 'name'=>'My Web Application', // autoloading model and component classes 'import'=>array( 'models.*', 'components.*', ), 'modules'=>array( // TODO: include modules to admin part of WP ), // application components 'components'=>array( 'clientScript'=>array( 'class'=>'WPClientScript', ), 'urlManager'=>array( 'urlFormat'=>'path', 'showScriptName'=>false, ), 'db'=>array( 'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db', ), // uncomment the following to use a MySQL database /* 'db'=>array( 'connectionString' => 'mysql:host=localhost;dbname=testdrive', 'emulatePrepare' => true, 'username' => 'root', 'password' => '', 'charset' => 'utf8', ), */ 'log'=>array( 'class'=>'CLogRouter', 'routes'=>array( array( 'class'=>'CFileLogRoute', 'levels'=>'error, warning', ), ), ), ), // application-level parameters that can be accessed // using Yii::app()->params['paramName'] 'params'=>array( // this is used in contact page 'adminEmail'=>'webmaster@example.com', ), );
Posted 14 July 2013 - 07:18 AM
Posted 15 July 2013 - 12:03 PM
Posted 04 August 2013 - 02:28 AM
acorncom, on 15 July 2013 - 12:03 PM, said:
Posted 09 August 2013 - 10:21 PM
Posted 27 September 2013 - 08:30 PM
Posted 03 October 2013 - 03:00 AM
Posted 03 October 2013 - 03:09 AM
Jenezis, on 02 July 2013 - 10:59 AM, said:
$config = ABSPATH.'protected/config/admin.php'; // path to config to admin section require(ABSPATH.'framework/YiiBase.php'); // include YiiBase // overrides Yii class class Yii extends YiiBase { // override Yii autolad public static function autoload($className) { $wp_classes = array( 'Translation_Entry', 'Translations', 'NOOP_Translations', 'POMO_Reader', 'POMO_FileReader', 'POMO_StringReader', 'POMO_CachedFileReader', 'POMO_CachedIntFileReader', 'MO', '_WP_Editors', ); if(!in_array($className, $wp_classes)) YiiBase::autoload($className); } } // remove the following lines when in production mode defined('YII_DEBUG') or define('YII_DEBUG',true); // specify how many levels of call stack should be shown in each log message defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); // unregister default Yii autoload and register new spl_autoload_unregister(array('YiiBase', 'autoload')); spl_autoload_register(array('Yii','autoload')); // create new aliases to models and components directories Yii::setPathOfAlias( 'models', ABSPATH.'protected/models/' ); Yii::setPathOfAlias( 'components', ABSPATH.'protected/components/' ); // create Yii application, but not run it Yii::createWebApplication($config);
return array( 'basePath'=>ABSPATH, 'runtimePath' => ABSPATH.'protected/runtime', 'name'=>'My Web Application', // autoloading model and component classes 'import'=>array( 'models.*', 'components.*', ), 'modules'=>array( // TODO: include modules to admin part of WP ), // application components 'components'=>array( 'clientScript'=>array( 'class'=>'WPClientScript', ), 'urlManager'=>array( 'urlFormat'=>'path', 'showScriptName'=>false, ), 'db'=>array( 'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db', ), // uncomment the following to use a MySQL database /* 'db'=>array( 'connectionString' => 'mysql:host=localhost;dbname=testdrive', 'emulatePrepare' => true, 'username' => 'root', 'password' => '', 'charset' => 'utf8', ), */ 'log'=>array( 'class'=>'CLogRouter', 'routes'=>array( array( 'class'=>'CFileLogRoute', 'levels'=>'error, warning', ), ), ), ), // application-level parameters that can be accessed // using Yii::app()->params['paramName'] 'params'=>array( // this is used in contact page 'adminEmail'=>'webmaster@example.com', ), );
Posted 17 October 2013 - 04:48 AM
Posted 18 October 2013 - 07:07 AM
Posted 18 October 2013 - 12:59 PM
Posted 18 October 2013 - 01:03 PM
Posted 22 April 2014 - 03:16 AM
<VirtualHost [b]IP[/b]:80 > ... DocumentRoot [b]/FULL_PATH_TO/public_html/data[/b] ScriptAlias /cgi-bin/ [b]/FULL_PATH_TO[/b]/public_html/data/cgi-bin/ ... </VirtualHost>
Posted 22 April 2014 - 05:48 AM
Posted 04 June 2015 - 07:54 PM
Posted 05 June 2015 - 09:15 AM
Quote