Skip to content

Commit

Permalink
Merge pull request #42 from mdthh/patch-1
Browse files Browse the repository at this point in the history
Update index.phtml
  • Loading branch information
visto9259 committed Jul 11, 2023
2 parents 7d7e32c + 0e14ecc commit 144d939
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
68 changes: 34 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ Installation

```php
<?php
return array(
'modules' => array(
return [
'modules' => [
// ...
'LmcUser',
),
],
// ...
);
];
```


Expand All @@ -78,20 +78,20 @@ Installation

```php
<?php
return array(
'db' => array(
return [
'db' => [
'driver' => 'PdoMysql',
'hostname' => 'changeme',
'database' => 'changeme',
'username' => 'changeme',
'password' => 'changeme',
),
'service_manager' => array(
'factories' => array(
'Laminas\Db\Adapter\Adapter' => 'Laminas\Db\Adapter\AdapterServiceFactory',
),
),
);
],
'service_manager' =>[
'factories' => [
\Laminas\Db\Adapter\Adapter::class => \Laminas\Db\Adapter\AdapterServiceFactory::class,
],
],
];

```

Expand Down Expand Up @@ -196,33 +196,33 @@ module.config.php, or a dedicated recaptcha.config.php):

<?php
// ./config/autoload/recaptcha.config.php
return array(
'di'=> array(
'instance'=>array(
'alias'=>array(
return [
'di'=> [
'instance'=> [
'alias'=> [
// OTHER ELEMENTS....
'recaptcha_element' => 'Laminas\Form\Element\Captcha',
),
'recaptcha_element' => array(
'parameters' => array(
'recaptcha_element' => \Laminas\Form\Element\Captcha::class,
],
'recaptcha_element' => [
'parameters' => [
'spec' => 'captcha',
'options'=>array(
'options'=> [
'label' => '',
'required' => true,
'order' => 500,
'captcha' => array(
'captcha' => [
'captcha' => 'ReCaptcha',
'privkey' => RECAPTCHA_PRIVATE_KEY,
'pubkey' => RECAPTCHA_PUBLIC_KEY,
),
),
),
),
'LmcUser\Form\Register' => array(
'parameters' => array(
],
],
],
],
\LmcUser\Form\Register::class => [
'parameters' => [
'captcha_element'=>'recaptcha_element',
),
),
),
),
);
],
],
],
],
];
2 changes: 1 addition & 1 deletion view/lmc-user/user/index.phtml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div style="float:left; padding-right:16px;"><?php echo $this->gravatar($this->lmcUserIdentity()->getEmail()) ?></div>
<h3><?php echo $this->translate('Hello'); ?>, <?php echo $this->lmcUserDisplayName() ?>!</h3>
<h3><?php echo $this->translate('Hello'); ?>, <?php echo $this->escapeHtml($this->lmcUserDisplayName()) ?>!</h3>
<a href="<?php echo $this->url('lmcuser/logout') ?>">[<?php echo $this->translate('Sign Out'); ?>]</a>
<div style="clear:both;"></div>

0 comments on commit 144d939

Please sign in to comment.