Yii Framework Forum: Error While Changing App Directory - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Error While Changing App Directory

#1 User is offline   MoriPR 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 31
  • Joined: 18-July 13

Posted 10 September 2014 - 09:34 AM

Hi,

I was changing my application from its directory but I am having trouble because not being able to use the database functions. Every time I try to use my login function I get the following error

include(PDO.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory


this happens when the code runs the following function

 $user = Yii::app()->db->createCommand()


To change the directory I just placed the a copy of framework and a copy of the application on the same positions in the new directory

Example

moved this
root/OldDirectory/framework
root/OldDirectory/app/index.php

to

root/NewDirectory/framework
root/NewDirectory/app/index.php

if more information is needed just ask.

Thanks
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users