Here's my issue:
I have 1 controller (home) which has 2 methods, index() and page2()
index() renders the View: home_guts.php which contains one anchor:
<?php echo html::anchor('home/page2', 'Click here for page 2!!') ?>
page2() renders the View: page2_view.php which also contains one anchor:
<?php echo html::anchor('home/index', '<--Go Back') ?>
When I load the page: http://127.0.0.1
home/index is loaded by default.
The anchor on it points to:
http://127.0.0.1/index.php/home/page2
That's fine.. When I follow the link, the anchor on page2 points to:
http://127.0.0.1/index.php/home/index.php/home/index
That looks a bit weird.. but I click it and it works.
However now the link on index points to:
http://127.0.0.1/index.php/home/index.php/home/index.php/home/page2
And, of course, clicking that yields the error:
The page you requested, home/index.php/home/page2, could not be found.
I'm running on the following setup:
WindowsXP Pro SP2
IIS
PHP 5.2.5
Kohana 2.2 (build 2665) from the SVN
And here's my controller, just for giggles:
<?php
class Home_Controller extends Controller
{
function index()
{
$template = new View('home_view');
$template->title = "This is the TITLE";
$template->contents = new View('home_guts');
$template->contents->text = 'CONTENTS OF HOME_GUTS';
$template->render(TRUE);
}
function page2()
{
$template = new View('home_view');
$template->title = "Page 2's Title";
$template->contents = new View('page2_view');
$template->render(TRUE);
}
}
?>