Use YII Data Access Layer -DAO as a library from another full aplication
need only include this lines in a file persistent like a conf.php under the aplication requering this librarys?
// include Yii bootstrap file
require_once(dirname(__FILE__).'/../../framework/yii.php');
// create a Web application instance and run
Yii::createWebApplication()->run();
Fatal error: Uncaught exception 'CException' with message 'Application base path "protected" is not a valid directory.' in /home/devm/public_html/framework/base/CApplication.php:207 Stack trace: #0 /home/devm/public_html/framework/base/CApplication.php(107): CApplication->setBasePath('protected') #1 /home/devm/public_html/framework/YiiBase.php(74): CApplication->__construct(NULL) #2 /home/devm/public_html/top25/sistema/mod/cpd/exportaru.php(9): YiiBase::createWebApplication() #3 {main} thrown in /home/devm/public_html/framework/base/CApplication.php on line 207
mmm
EDITED:
after 'protected' directory created:
Page Not Found
Unable to resolve the request "site".
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster