PHP code example of hrevert / ht-mobile-template-module
1. Go to this page and download the library: Download hrevert/ht-mobile-template-module library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hrevert / ht-mobile-template-module example snippets
return [
'ht_mobile_template' => [
'path_stack' => [
'mobile' => [
__DIR__ . '../view/mobile/',
__DIR__ . '../../AnotherModule/view/mobile/',
],
'tablet' => [
__DIR__ . '../view/tablet/',
__DIR__ . '../../AnotherModule/view/tablet/',
]
],
'map' => [
'mobile' => [
'application/index/index' => __DIR__ . '../view/mobile/application/index/index.phtml',
],
'tablet' => [
'application/index/index' => __DIR__ . '../view/tablet/application/index/index.phtml',
],
]
]
];