|
Comments for: fryzel20030306
| Message # 1016190: |
|
Date: 04/20/03 15:51
By: Rob Subject: Another suggestion If you like this method, here's another possible way to do it. Instead of naming the switch like "index" and then manually putting a line like this in: $switch = 'index'; You can use $_SERVER['PHP_SELF'] and set that up as your switch condition: switch ($_SERVER['PHP_SELF']) { case '/index.php': require_once('file/to/include.php'); require_once('file/to/also_include.php'); } Then, on your pages where you would normally put $switch = 'index' just take it out and make sure that the switch gets parse and ran. |
Previous Message | Next Message |
| Comments: | ||
| RE: This is a HORRIBLE design | Fryzel | 05/07/03 10:34 |
| RE: Another suggestion | anon_coward | 04/30/03 11:54 |
| This is a HORRIBLE design | Jack | 04/30/03 08:15 |
| Another suggestion | Rob | 04/20/03 15:51 |
| RE: Real MVC framework | Ed Williams | 04/16/03 12:00 |
| RE: Rubbish | Alejandro Vasquez | 04/13/03 12:52 |
| appreciation and suggestion | puzling | 03/29/03 22:27 |
| RE: Rubbish | Pests | 03/25/03 11:02 |
| The Truth | Priyank | 03/21/03 01:02 |
| RE: Rubbish | Michael Peres | 03/19/03 01:37 |
| Real MVC framework | Alexandru COSTIN | 03/14/03 18:45 |
| RE: Rubbish | In-Hwan, Kim | 03/13/03 01:31 |
| O_O!!! | Josep | 03/11/03 04:38 |
| Rubbish | anon | 03/10/03 07:53 |
| So basically... | Jester | 03/08/03 14:29 |
| Simplistic | Kriek | 03/07/03 18:45 |
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly. | ||


