Topic: This is possible
This is possible ?
loading this mobile_index.template.php and not this index.template.php
Monstra → Development → This is possible
Pages 1
This is possible ?
loading this mobile_index.template.php and not this index.template.php
Line 58 - index.php
if (Agent::isMobile()) {
// Load mobile site template from 'mobile' theme folder
require(MINIFY . DS . 'theme.' . 'mobile' . '.' . Site::template() . '.template.php');
} else {
// Load site template
require(MINIFY . DS . 'theme.' . Site::theme() . '.' . Site::template() . '.template.php');
}
i have a error in
Fatal error: main() [function.require]: Failed opening required '/home/public_html/tmp/minify/theme.mobile.minify.index.template.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/public_html/index.php on line 77
I create another folder with another Monstra cms for mobile.
if (Agent::isMobile()) {
Request::redirect(Site::url().'mobile');
} else {
// Load site template
require(MINIFY . DS . 'theme.' . Site::theme() . '.' . Site::template() . '.template.php');
}
Pages 1
Monstra → Development → This is possible
Powered by PunBB, supported by Informer Technologies, Inc.