Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 93faa120 authored by Nicolas's avatar Nicolas
Browse files

Correction du Controller et ajout des fichiers HTML avec i18n

parent 129daf02
No related branches found
No related tags found
No related merge requests found
<?php
namespace NicolasBejean\Base\Block\Adminhtml\Home;
use \Magento\Backend\Block\Template;
use \Magento\Backend\Block\Template\Context;
class Index extends Template
{
public function __construct(Context $context, array $data = [])
{
parent::__construct($context, $data);
}
public function getToto() {
return ' de Nicolas Béjean';
}
}
\ No newline at end of file
"Home", "Home"
\ No newline at end of file
"Home", "Accueil"
\ No newline at end of file
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="menu">
<action method="setActive">
<argument name="itemId" xsi:type="string">NicolasBejean_Base::base</argument>
</action>
</referenceBlock>
<referenceContainer name="content">
<block class="NicolasBejean\Base\Block\Adminhtml\Home\Index" name="base.home.index" template="NicolasBejean_Base::base_home_index.phtml" />
</referenceContainer>
</body>
</page>
\ No newline at end of file
<h2><?php echo __('Home'); ?></h2>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment