The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
URL routing
#3
What you're essentially thinking is how MVC (model, view controller works). We don't use that. I've thought about making an MVC version of userspice, but I think a lot of people like that it's NOT mvc.

There are ways to do this with an .htaccess file, but you would have to do a lot of tweaking.

The other option for when you get to a live server is to take two subdomains and point them to the same physical folder on your server and then store the company name you want to redirect them to would be in your users table for each user. Basically add a column called company or whatever to the users table.

Then, if your site was google.com you would do your links like

https://<?=$user->data()->company?>....s/test.php
Not the same as what you were asking, but a ton less fiddling. I do have an mvc controller for UserSpice but it's not ready, so that could work in the mean time.
  Reply


Messages In This Thread
URL routing - by brahm.pragya - 02-24-2018, 04:35 AM
URL routing - by Brandin - 02-24-2018, 02:51 PM
URL routing - by dan - 02-24-2018, 03:18 PM
URL routing - by brahm.pragya - 02-26-2018, 04:53 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)