Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad Issue #14

Closed
DrMabuse23 opened this issue Jun 27, 2014 · 1 comment
Closed

Bad Issue #14

DrMabuse23 opened this issue Jun 27, 2014 · 1 comment

Comments

@DrMabuse23
Copy link

Scenario:

table = 'app_file',
fields:'id',name_id,'path'

Now i added in the Model File not FileBase

 /**
     * @var the file
     */
    public $file;

    /**
     * file to upload
     * @inheritdoc
     */
    public function rules()
    {
        return array_merge(parent::rules(),[
            ['file', 'file', 'types' => 'jpg,png,gif,mp4,pdf', 'skipOnEmpty' => false],
        ]);
    }

PHP Notice 'yii\base\ErrorException' with message 'Undefined index: file'

because its not in tableShema its only a public var

@schmunk42
Copy link
Owner

Is this still an issue with the current version from develop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants