Php + codeigniter + framework7

i am using php and codeigniter.

This is App controller

// when you type url like '/app', you come here
public function index(){ 
	$this->appList();
}

This is my Controller and index function

This is function appList() in controller.

$this->load->view('home/app/v2/includes/header', $header);
$this->load->view('home/app/v2/pages/loading',$myData);
$this->load->view('home/app/v2/includes/footer',$footer);

this is loading.php.

<div class="view view-main">
  <div data-name="home" class="page">
    loading...
  </div>
</div>

In app.js( loaded in the footer.php)
i wrote like this.
스크린샷 2020-03-24 오후 6.38.46

i cannot get data from async.

so we redirect ‘/app’ like below

var mainView = app.views.create('.view-main',{
  reloadPages: true,
  allowDuplicateUrls: true,
  // unloadTabContent : false,
});
mainView.router.navigate('/app', {
  ignoreCache  : true,
  reloadCurrent : true
});

then we can get data from async.

But,
when i try to use ‘Views as Tabs’ (https://framework7.io/docs/tabs.html#views-as-tabs),
all html goes into <div class=view view-main"> we made in loading.php(view)

This is main.php(view)

<div id="view-home" class="view view-main tab tab-active">
     ...
 </div>
 <!-- Catalog View -->
 <div id="view-catalog" class="view tab">
        ...
 </div>
 <!-- Settings View -->
 <div id="view-settings" class="view tab">
        ...
 </div>

(result)

<div class="view view-main">
     <div id="view-home" class="view view-main tab tab-active">
        ...
      </div>
      <!-- Catalog View -->
      <div id="view-catalog" class="view tab">
        ...
      </div>
      <!-- Settings View -->
      <div id="view-settings" class="view tab">
        ...
      </div>
</div>

but we want like below
(the html we want)

<div class="view view-main">
</div>
<div id="view-home" class="view view-main tab tab-active">
        ...
</div>
<!-- Catalog View -->
<div id="view-catalog" class="view tab">
        ...
 </div>
 <!-- Settings View -->
<div id="view-settings" class="view tab">
        ...
</div>

can i use php with framework7?
please help T.T
Thank you everyone~~~