My old website is calling index.php, and then according to the parameter - "link" to load corresponding page to display the site.
<?php
switch ($_GET['link'])
{
case 'shopping': include 'action/shopping.php'; break;
...
...
case 'pay': include 'action/pay.php'; break;
...
...
default: include 'action/home.php';
}
die();
Now I want to revamp my old website by using Yii Framework.
However, I don’t have so much time to all the page, and my old version also need to create some events for the visitors etc.
That why I am thinking to write my index.php into this…
switch ($_GET['link'])
{
case 'shopping': include 'action/shopping.php'; break;
...
...
case 'pay': include 'action/pay.php'; break;
...
...
case 'new_event':
$_GET['r']='new_event/index';
include '../yii_htdocs/index.php';
die();
return;
default: include 'action/home.php';
}
die();
However, there are a lot of errors if I calling Yii by this way.
I don’t want to use redirect… because I want to keep index.php
How to solve this issue?
Thanks!