Loading...
Прочие движки | Кто подскажет?
при переходе на /about или другую статистическую не открывается страница about.html и остальные код
php
   <?php use DelightFoundationApp; use DelightFoundationHelper; use DelightAuthWsRole;  if(!is_null($app->input()->get('ref'))) { $_SESSION['REF']=$app->input()->get('ref'); }  $_UTC = ['1'=>['language'=>'ru','offset'=>'+5:00','timezone'=>'Екатеринбург (+2:00 МСК)','daylight'=>''],  '2'=>['language'=>'ru','offset'=>'+3:00','timezone'=>'Москва','daylight'=>''],];  //echo '<pre>'; print_r($_SESSION); echo '</pre>';  //static pages $app->get('/', 'HomeController::home'); $app->get('/shipping', function ($app) { echo $app->view('shipping.html', []); }); $app->get('/kitchen', function ($app) { echo $app->view('kitchen.html', []); }); $app->get('/about', function ($app) { echo $app->view('about.html', []); }); $app->get('/wholesale', function ($app) { echo $app->view('wholesale.html', []); }); $app->get('/contact-us', function ($app) { echo $app->view('contact-us.html', []); }); $app->get('/bonuses', function ($app) { echo $app->view('bonuses.html', []); }); $app->get('/privacy', function ($app) { echo $app->view('privacy.html', []); }); $app->get('/promo', function ($app) { echo $app->view('promo.html', []); }); ///////////////  //cart $app->get('/cart/add/:id/:qty', function ($app, $id, $qty) { CartController::add($id, $qty); }); $app->get('/cart/additems/:id/:qty', function ($app, $id, $qty) { CartController::addItems($id, $qty); }); $app->get('/cart/update/:id/:qty', function ($app, $id, $qty) { CartController::update($id, $qty); }); $app->get('/cart/delete/:id', function ($app, $id) { CartController::delete($id); }); $app->get('/cart/items', 'CartController::items'); $app->get('/cart/items/total', 'CartController::itemsTotal'); ///////////////  //order $app->any([ 'POST', 'GET' ],'/checkout', 'OrderController::checkout'); ///////////////  //login auth $app->get('/login', 'ProfileController::login'); $app->post('/login', 'ProfileController::login'); $app->post('/logincode', 'ProfileController::loginCode'); ///////////////  $app->any([ 'POST', 'GET' ],'/pay/bank/response', 'PaymentController::paymentResponse'); $app->get('/profile/home/payment/failed', function ($app) { OrderController::paymentFailed(); });  //profile if($app->authPhone()->isLoggedIn()) {  $app->get('/profile/home', function ($app) { ProfileController::home('upcoming'); });  $app->get('/profile/home/templates', function ($app) { ProfileController::home('templates'); });  $app->get('/payment/success', function ($app) { ProfileController::paymentSuccess(); });   $app->get('/profile/home/payment/success', function ($app) { ProfileController::paymentSuccess(); });   $app->any([ 'POST', 'GET' ],'/pay/prepare', 'PaymentController::prepareRedirect');    $app->get('/profile/home/history', 'ProfileController::history');   $app->get('/logout', 'ProfileController::logout');  $app->get('/profile/bonuses', 'ProfileController::bonuses');   $app->get('/order/copy/:id', function ($app,$id) { OrderController::copyOrder($id,''); });  $app->get('/order/copy/:id/:schedule', function ($app,$id,$schedule) { OrderController::copyOrder($id,$schedule); });  $app->get('/order/status/:id/:status', function ($app,$id,$status) { OrderController::changeStatus($id,$status); });  $app->any([ 'POST', 'GET' ],'/profile/user/edit/:id', function ($app,$id) { ProfileController::userEdit($id); });   if($app->authPhone()->hasAnyRole(WsRole::ADMIN,WsRole::MANAGER, WsRole::WHOLESALER)) {  $app->get('/profile/users', 'ProfileController::users');  $app->any([ 'POST', 'GET' ],'/profile/user/add', 'ProfileController::userAdd');  $app->get('/profile/user/delete', 'ProfileController::userDelete');   if($app->authPhone()->hasAnyRole(WsRole::ADMIN,WsRole::MANAGER))   $app->get('/profile/user/impersonate/:id', function ($app,$id) { ProfileController::impersonate($id); });  if($app->authPhone()->hasAnyRole(WsRole::ADMIN))  $app->any([ 'POST', 'GET' ],'/profile/payments', function ($app) { ProfileController::payments(); });  } else {  die('auth failed');  } } else {  $app->redirect('/login'); } ///////////////  // return an error page for undefined pages header('HTTP/1.0 404 Not Found'); echo   

________
посл. ред. 23.01.2020 в 14:45; всего 2 раз(а); by Nochnoi
Nochnoi (22.01.2020 в 20:37)
$app->get('about/', function ($app) {echo $app->view('about.html',[]);});
при переходе на /about не открывается страница about.html

Слеш добавь в конец Гг
А штекер для чего?
Jquery , какой *crazy*
Nochnoi (22.01.2020 в 20:40)
Jquery , какой *crazy*

Твое художество на чем написано?
Jquery , MVC
Nochnoi (22.01.2020 в 20:44)
Jquery , MVC

Понел Гг
Jquery , хер пойму что не так
/about.html смотря где твои about.. http://,,,,,/about.html
NOeasyKiDD , здесь лежит views/about.html
Онлайн: 2
Время:
Gen. 0.1205
(c) Bym.Guru 2010-2026