pkit_fixup_uri — filter uri for conversion into page IDs


  sub pkit_fixup_uri {
    my ($model, $uri) = @_;

    $uri =~ s!^/pagekit!!;
    return $uri;


Pre-processes the URI so that it will match the page_id's used by PageKit to dispatch the model code and find the template and content files.

In the example listed above, the request for http://yourwebsite/pagekit/myclass/mypage would get dispatched to the mypage method of the myclass class, and the View/Default/myclass/mypage.tmpl template and/or the Content/myclass/mypage.xml XML file.

Note: that no session and page_session data is available in this function for reading or writing.

See also uri_prefix.