Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Yii Can't Autload A Model/class

$
0
0
Dear Yiians,

I'm getting a pretty weird behavior from my Yii project. Everything was OK then suddenly the project stopped to autload a specific model: SystemParameters.php

It was working for at the least 15 days.

I use such model to bring the parameters and constants used in the project. The reason it's an table and not under enumerators or CONSTANT is because the user needs to change every month.

The workaround I've found was to add:

require_once APPLICATION_PATH . DS . 'models/SystemParameters.php';

Any clue of what I'm doing wrong?

PS: yes, my config/main.php includes 'import'=>array('application.models.*', and NO, is not a sensitive case.

Thank you for any help,

Doug.

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>