Pages

Wednesday, August 10, 2011

Database errors while running cakephp console

Failed to open stream No such file or directory

One way is to use -app /cake/app/ and then run your cakephp shell

for example if your shell name is myshell use

cake myshell -app /cake/app/(absolute/relative path to app folder)

other way round is to copy console folder in your app directory in that case simply run

cake myshell and it will work

1 comment: