[eluser]Majd Taby[/eluser]
Hey, I want to create a new validation library, MY_Validation, it works, but only if i put the file in application/libraries/ I need to be able to put it in application/backend/libraries.
I looked at system/codeigniter/Common.php and it seems to accomodate for it (using APPPATH, which includes the subdirectory), but it just doesn't work. Here's the error:
Fatal error: Cannot redeclare class CI_Validation in /Users/majd/Sites/portal_wc/system/libraries/Validation.php on line 43
here's how the code looks:
Code:
class MY_Validation extends CI_Validation{
function MY_Validation()
{
parent::CI_Validation();
}