'404' => 'profiles/view',
$user = Model_Profile::find_by_username(Uri::segment(1)); if (empty($user)) { return $this->action_404(); }
Output::redirect('controllername/404');
'routes' => array( // This is the default route. We use a "#" here so that we do not have any // reserved routes. '#' => 'profiles/random', '404' => 'errors/404', 'profiles/(:any)' => 'profiles/$1', 'errors/(:any)' => 'errors/$1', '(:any)' => 'profiles/view/$1' ),
It looks like you're new here. If you want to get involved, click one of these buttons!