Git Product home page Git Product logo

Comments (4)

vova07 avatar vova07 commented on May 25, 2024

Hi @AmadouD ,
You have put that code to your existing controller class.
The problem with url can have some relation with routing settings. Maybe you forgot to add a rule to your UrlManager configs for that new upload action.

from yii2-imperavi-widget.

AmadouD avatar AmadouD commented on May 25, 2024

Hi @vova07 thank for your reponse its help me a lot !!
i have setup the configs in url manager but still didnt get the icon for image

he is my ofrresController
` public function actions()
{

  return [
      'image-upload' => [
        'class' => 'vova07\imperavi\actions\UploadAction',
        'url' => Yii::$app->getUrlManager()->getBaseUrl().'/uploads/', // Directory URL address, where files are stored.
        'path' => Yii::$app->basePath.'/common/uploads/' // Or absolute path to directory where files are stored.

    ],
  ];

}`

and my _form
<?= $form->field($model, 'description')->widget(Widget::className(), [ 'settings' => [ 'lang' => 'fr', 'minHeight' => 200, 'plugins' => [ 'fontfamily', 'clips', 'fullscreen', 'imageUpload' => Url::to(['/offres/image-upload']) ] ] ]); ?>
note : i have already fix the problem with url.
any idea what i am missing; i am new in advanced template

from yii2-imperavi-widget.

vova07 avatar vova07 commented on May 25, 2024

Not sure if that is a typo or not, but the problem I see is that 'imageUpload' option must be a key of 'settings' array not 'plugins'. Try to fix that to see the result. Sorry for missed exemple, writing from smartphone.

from yii2-imperavi-widget.

AmadouD avatar AmadouD commented on May 25, 2024

after putting the Url::to(['/offres/image-upload']) outside the plugins
and put imagemanager, filemanager in plugings it work fine
thank you a lot;
great extensions i will put a star

from yii2-imperavi-widget.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.