问题
I use cakephp-2.4.7.
And I get error following message when I’ try to use oracle.
Missing Datasource
Error: Datasource class Oracle could not be found.
And I find an article http://book.cakephp.org/2.0/en/models/datasources.html that cakePHP doesn’t support oracle.
Is there any trick what I can use oracle?
回答1:
CakePHP has stopped supporting Oracle since version 2.x. You should either choose CakePHP 1.3 or some other php framework which supports Oracle.
We can use upper version of cakePHP , just we have to do is to donload oracle parsing file from github and place it in C:\wamp\www\Cakephp\cake\libs\model\datasources\dbo
来源:https://stackoverflow.com/questions/23506993/how-to-use-oracle-in-cakephp