/+junk/StupidMVC

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/StupidMVC

« back to all changes in this revision

Viewing changes to index.php

  • Committer: Gustav Hatvigsson
  • Date: 2016-03-18 08:58:23 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20160318085823-fiegqlfi14e237bn
* Made the WelcomeView.php use functions for different parts of the
  rendering.
* Added an expliantion on how to use StupidMVC
* Chaned the BASE_URL to something more sane.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
}
23
23
 
24
24
 
25
 
define ("BASE_URL", "http://localhost/StupidMVC/");
 
25
define ("BASE_URL", ("http://" . $_SERVER["SERVER_NAME"] . "/StupidMVC/"));
26
26
 
27
27
header("Content-type: text/xml");
28
28