Note that there are some explanatory texts on larger screens.

plurals
  1. POPhp 404 page redirection
    text
    copied!<p>I am having trouble setting the redirect page. It doesn't seem to load.</p> <p>Currently I have this it does the cases for the pages but it doesnt go to the defualt for some reason ?? comes up with page does not exists.</p> <p>this bit is not working it wont switch to the default for some reason ?</p> <pre><code> //get the page information $pageInfo = $model -&gt; getPageInfo($_GET['page']); //select which page to include when the user clicks //on either register/home/my account/my bids/my sell/completed auctions/edit etc..etc..etc.. switch($_GET['page']) { case 'Register': include 'views/register.php'; $view = new HomeView($pageInfo, $model); break; case 'Home': include 'views/homeView.php'; $view = new HomeView($pageInfo, $model); break; case 'My Account': include 'views/myaccount.php'; $view = new myaccount($pageInfo, $model); break; case 'My Bids': include 'views/mybids.php'; $view = new Mybids($pageInfo, $model); break; case 'My Sell': include 'views/mysell.php'; $view = new mysell($pageInfo, $model); break; case 'Completed Auctions': include 'views/checkout.php'; $view = new checkout($pageInfo, $model); break; case 'editProduct': include 'views/editProductView.php'; $view = new EditProductView($pageInfo, $model); break; case 'addProduct': include 'views/addProductView.php'; $view = new AddProductView($pageInfo, $model); break; case 'deleteProduct': include 'views/deleteProductView.php'; $view = new DeleteProductView($pageInfo, $model); break; case 'deleteUser': include 'views/deleteUserView.php'; $view = new DeleteUserView($pageInfo, $model); break; case 'search': include 'views/search.php'; $view = new search($pageInfo, $model); break; case 'product': include 'views/productView.php'; $view = new ProductView($pageInfo, $model); break; default: include 'views/404.php'; $view = new error($pageInfo,$model); break; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload