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

Simple problem - can't workaround hyphen in use statement #1

Closed
newscloud opened this issue Nov 28, 2016 · 1 comment
Closed

Simple problem - can't workaround hyphen in use statement #1

newscloud opened this issue Nov 28, 2016 · 1 comment

Comments

@newscloud
Copy link

Could you please give a coding example of how to include your library?

use yii2mod/yii2-disqus; is forbidden and I couldn't figure it out :(

@ihorchepurnyi
Copy link
Contributor

Hi, try this

  • Basic usage
<?php echo \yii2mod\disqus\Disqus::widget([
    'options' => ['shortname' => 'DISQUS_SHORTNAME']
]); ?>
  • Advanced widget usage
echo \yii2mod\disqus\Disqus::widget([
    'options' => ['shortname' => 'DISQUS_SHORTNAME', 'identifier'=>'DISQUS_IDENTIFIER', 'url'=>'URL'],
]);

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

No branches or pull requests

2 participants