Trước tiên là cách lấy giá trị của jQuery,
hàm $(this).val() chỉ lấy giá trị của input trong form, còn nếu là div/class thông thường thì phải lấy giá trị qua $(this).html()
Trước tiên là cách lấy giá trị của jQuery,
hàm $(this).val() chỉ lấy giá trị của input trong form, còn nếu là div/class thông thường thì phải lấy giá trị qua $(this).html()
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