With Kohana 3, I would like to get to know if a page with a by the user entered URI exists. So basically the user enters an URI, and I will say if it will give a (404) error or not.
Ben zaten bu denedim ama işe yaramadı:
<?php
public function action_test_uri()
{
$r = Request::factory('this/uri/is/not/leading/to/a/valid/page');
$test = $r->status;
$test = ($test == 404) ? 'THIS PAGE DOESN\'T EXISTS' : 'THIS PAGE EXISTS';
die($test);
}
?>
Ne yazık ki bu 'BU SAYFA VAR' çıktılar.
Çözüm biliyor kimse var mı?
Teşekkürler