Sitemap::actionIndex()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Apps\Controller\Admin;
4
5
use Apps\Model\Front\Sitemap\EntityIndexList;
6
use Extend\Core\Arch\AdminController;
7
8
/**
9
 * Class Sitemap. Admin controller of sitemap app
10
 * @package Apps\Controller\Admin
11
 */
12
class Sitemap extends AdminController
13
{
14
    const VERSION = '1.0.1';
15
16
    public $type = 'app';
17
18
    /**
19
     * Show index page - sitemap guide and info
20
     * @return string
21
     */
22
    public function actionIndex()
23
    {
24
        $model = new EntityIndexList();
25
        
26
        return $this->view->render('sitemap/index', [
27
            'model' => $model
28
        ]);
29
    }
30
}
31