Lỗi chạy command line:
php oil refine migrate
Error – invalid data source name in COREPATH/classes/database/pdo/connection.php on line 94
Sửa lỗi:
I had this problems as well, but I found out that it’s caused by the missing PDO extension in php-cli.ini, I am using UniformServer, after I added that in the config it worked. You should check if you have config for php cli.
Just thought you should know. For anyone that doesn’t want to look for it: C:UniServerusrlocalphpphp-cli.ini I added the line: extension=php_pdo_mysql.dll
Lỗi
ErrorException [ Error ]: Class ‘OrmModel’ not found
Sửa lỗi: trong config
return array(
‘always_load’ => array(
‘packages’ => array(
‘orm’,
),
),
);
Config Xdebug cho uniformserver (7.1.x)
[xdebug]
zend_extension=”C:ThangNMSetupUniServerusrlocalphpextensionsphp_xdebug-2.2.1-5.3-vc9.dll”
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.idekey=default
Với XAMPP 1.8.2 cần setup xdebug như sau:
[XDebug]
zend_extension = “C:xamppphpextphp_xdebug.dll”
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = “C:xampptmp”
xdebug.profiler_output_name = “cachegrind.out.%t-%s”
xdebug.remote_enable = 1
xdebug.remote_handler = “dbgp”
xdebug.remote_host = “127.0.0.1”
xdebug.trace_output_dir = “C:xampptmp”
xdebug.idekey=”netbeans-xdebug”
xdebug.remote_autostart=1