i am a bit confused about the preload ‘import’ parameters in ‘main.php’ config file. I have just change the import to:
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.modules.*',
'application.components.*',
'application.extensions.*',
),
Now i have created a new folder in extension ‘validators’ and created a ‘uniqueValidator.php’ inside of validators. In the model i am adding the validator like:
it does. but only from "extensions" directory, not subdirectories. If you want to automatically load classes from "validators" subdirectory you must add:
it does not. I just pointed that IF it worked then you would not have to specify any other paths like application.model., application.extensions., etc.
"*" in any case means only "all files from this directory" without recursion.