As a great advocate of Prado, it's great to see Yii is the new generation! Looks great, but I'm having some problems getting the first app to run.
I'm using the tutorial in the help documentation and am at the point "Implementing CRUD Operations" When I run the yiic shell command, I receive the following error.. something to do with session permissions:
PHP Error
Description
session_start(): open(/var/lib/php/session/sess_cc12q9s8sd2roauf9v5au6htj2, O_RDWR) failed: Permission denied (13)
Source File
/var/www/html/dev/yii/framework/web/CHttpSession.php(102)
00090: return false;
00091: }
00092:
00093: /**
00094: * Starts the session if it has not started yet.
00095: */
00096: public function open()
00097: {
00098: if(session_id()==='')
00099: {
00100: if($this->getUseCustomStorage())
00101: session_set_save_handler(array($this,'openSession'),array($this,'closeSession'),array($this,'readSession'),array($this,'writeSession'),array($this,'destroySession'),array($this,'gcSession'));
00102: session_start();
00103: }
00104: }
00105:
00106: /**
00107: * Ends the current session and store session data.
00108: */
00109: public function close()
00110: {
00111: if(session_id()!=='')
00112: @session_write_close();
00113: }
00114:
Stack Trace
#0 /var/www/html/dev/yii/framework/web/CHttpSession.php(102): session_start()
#1 /var/www/html/dev/yii/framework/web/CHttpSession.php(75): CHttpSession->open()
#2 /var/www/html/dev/yii/framework/core/CApplication.php(710): CHttpSession->init()
#3 /var/www/html/dev/yii/framework/web/CWebApplication.php(227): CWebApplication->getComponent()
#4 /var/www/html/dev/yii/framework/web/auth/CWebUser.php(83): CWebApplication->getSession()
#5 /var/www/html/dev/yii/framework/core/CApplication.php(710): CWebUser->init()
#6 /var/www/html/dev/yii/framework/core/CApplication.php(132): CWebApplication->getComponent()
#7 /var/www/html/dev/yiitest/testdrive/protected/views/site/index.php(2): CWebApplication->__get()
#8 /var/www/html/dev/yii/framework/web/CBaseController.php(119): require()
#9 /var/www/html/dev/yii/framework/web/CBaseController.php(88): SiteController->renderInternal()
#10 /var/www/html/dev/yii/framework/web/CController.php(482): SiteController->renderFile()
#11 /var/www/html/dev/yii/framework/web/CController.php(417): SiteController->renderPartial()
#12 /var/www/html/dev/yiitest/testdrive/protected/controllers/SiteController.php(27): SiteController->render()
#13 /var/www/html/dev/yii/framework/web/actions/CInlineAction.php(32): SiteController->actionIndex()
#14 /var/www/html/dev/yii/framework/web/CController.php(207): CInlineAction->run()
#15 /var/www/html/dev/yii/framework/web/CController.php(192): SiteController->runAction()
#16 /var/www/html/dev/yii/framework/web/CController.php(167): SiteController->runActionWithFilters()
#17 /var/www/html/dev/yii/framework/web/CWebApplication.php(146): SiteController->run()
#18 /var/www/html/dev/yii/framework/web/CWebApplication.php(118): CWebApplication->runController()
#19 /var/www/html/dev/yii/framework/core/CApplication.php(146): CWebApplication->processRequest()
#20 /var/www/html/dev/yiitest/testdrive/index.php(11): CWebApplication->run()
#21 /var/www/html/dev/yii/framework/cli/commands/ShellCommand.php(68): require()
#22 /var/www/html/dev/yii/framework/console/CConsoleCommandRunner.php(62): ShellCommand->run()
#23 /var/www/html/dev/yii/framework/console/CConsoleApplication.php(88): CConsoleCommandRunner->run()
#24 /var/www/html/dev/yii/framework/core/CApplication.php(146): CConsoleApplication->processRequest()
#25 /var/www/html/dev/yii/framework/yiic.php(30): CConsoleApplication->run()
#26 /var/www/html/dev/yii/framework/yiic(15): require_once()
Any help would be appreciated.
R
P.S. I'm running Fedora 8, php 5.2x, pdo seems to be there and working.