Hirdetés

Új hozzászólás Aktív témák

  • j0k3r!

    őstag

    hello!

    kicsit bekavarodtam a nevterekkel, szoval lehet, hogy nagyon trivialis lesz a kerdesem.
    osztalyaim:

    namespace Validators;

    abstract class Validator
    {
    ...
    }

    namespace Validators;

    abstract class FileValidator extends Validator
    {
    ...
    }

    Extension.php:

    <?php
    namespace Validators\FileValidators;

    class Extension extends \Validators\FileValidator
    {
    protected $_ext = array();

    public function __construct($error = null, array $ext = null) {
    $this->_error = $error;
    $this->_ext = $ext;
    }

    public function validate() {
    $current = $this->getFileType($this->_key);
    return in_array($current, $this->_ext);
    }
    }

    ?>

    hibauzenet: Fatal error: Class 'Validators\FileValidator' not found in C:\Program Files\xampp\htdocs\MyMVC\Application\Core\Validator\Validators\FileValidators\Extension.php on line 5

    kerdesem: miert nem talalja a FileValidator-t a Validators nevterben?

    elore is koszonom a segitseget :R

Új hozzászólás Aktív témák