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

Multiple widget on same page #4

Closed
bepehr opened this issue Dec 12, 2015 · 7 comments
Closed

Multiple widget on same page #4

bepehr opened this issue Dec 12, 2015 · 7 comments

Comments

@bepehr
Copy link

bepehr commented Dec 12, 2015

Hi , i want to use multiple comment widget on a page , all things works fine but comment form dont work , how i can do this ?

@ihorchepurnyi
Copy link
Contributor

Hello, i'm sorry but the current implementation of the extension does not allow to use it twice on the page.

@bepehr
Copy link
Author

bepehr commented Dec 14, 2015

Hi , do you have any plan to implement this ?

@ihorchepurnyi
Copy link
Contributor

Hi, on this week i've planned to make it.

@bepehr
Copy link
Author

bepehr commented Dec 14, 2015

Hi , i can help you if u need

On Mon, Dec 14, 2015 at 12:07 PM, Igor Chepurnoy notifications@github.com
wrote:

Hi, on this week i've planned to make it.


Reply to this email directly or view it on GitHub
#4 (comment)
.

@ihorchepurnyi
Copy link
Contributor

I create new release, please update your package and check it.
Use following code for multiple widgets:

echo \yii2mod\comments\widgets\Comment::widget([
        'model' => $model,
    ]);

echo \yii2mod\comments\widgets\Comment::widget([
        'model' => $model2,
        'formId' => 'comment-form2'
    ]); 

@bepehr
Copy link
Author

bepehr commented Dec 15, 2015

Hi , ty its works ! you saved my day ! 👍

@bepehr bepehr closed this as completed Dec 15, 2015
@ihorchepurnyi
Copy link
Contributor

Your welcome.

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