lorik / fortune_number
示例项目分配,用于计算页面访问者数量
v1.0.1
2023-03-27 12:51 UTC
Requires
- drupal/core: ^9 || ^10
README
This module is an assignment. It has two separate blocks: 1) show visitors counter, which is stored in a file (CountVisitorsInFileBlock.php); 2) show visitors counter, which is stored in a DB table (CountVisitorsInDBBlock.php). To install package run "$ composer require lorik/fortune_number" in your console. Then go to http://assignment.test/web/admin/modules and install module via name 'Fortune Number Module'. After that go to http://assignment.test/web/admin/structure/block/list/olivero and enable blocks 'Count Visitors in DB Block' or 'Count Visitors in a File Block' to your page path or '/indexAction/page' (path for this module controller).