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

AttachmentsInput and AttachmentsTable do not display #64

Open
larry-tx opened this issue Nov 30, 2017 · 0 comments
Open

AttachmentsInput and AttachmentsTable do not display #64

larry-tx opened this issue Nov 30, 2017 · 0 comments

Comments

@larry-tx
Copy link

I've used nemmo/yii2-attachments successfully for a considerable amount of time. A few days ago, after running composer update, suddenly, <?= \nemmo\attachments\components\AttachmentsTable::widget(['model' => $model]) ?> and

    <?= \nemmo\attachments\components\AttachmentsInput::widget([
        'id' => 'file-input', // Optional
        'model' => $model,
        'options' => [ // Options of the Kartik's FileInput widget
            'multiple' => true, // If you want to allow multiple upload, default to false
        ],
        'pluginOptions' => [ // Plugin options of the Kartik's FileInput widget
            'maxFileCount' => 10 // Client max files
        ]
    ]) ?>

have ceased to display in the input form. There is nothing there. I've checked the page source, and there isn't even any reference to the code for either for these structures in the page source.

Looking at the runtime/log, I find the following embedded in the meswsaging:

Error: Class 'common\modules\healthlog\models\nemmo\attachments\behaviors\FileBehavior' not found in W:\xampp\htdocs\public_html\common\modules\healthlog\models\HealthLogAppointment.php:31

Obviously, somehow, the route to the model the view _form.php is built on has become embedded in the path to the extension. I went back to the declaration of the 'attachments' in common\config\main.php and the declarion of the behavior in the model, and literally copied and pasted each from your instructions. That didn't change anything. Still, noting displays in _form.php for the model.

I suppose I could try more explicitly expressing the path using @Vendor, but I'm hoping you can guide me in an appropriate direction.

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

1 participant