+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 16 to 19 of 19
  1. #16
    Senior Member
    Join Date
    Sep 2011
    Posts
    258
    Well yeah, its something like that. I'd like to validate that the 'path' exists and is accessible, if thats the correct way of putting it. If validation succeeds, a hyperlink will be generated. Otherwise a URL exception is thrown and will be handled in front controller.

  2. #17
    Un Re Member cretaceous's Avatar
    Join Date
    Sep 2004
    Location
    London UK
    Posts
    865
    Yes but are these actual directories/ files or are they merely names of entries in your database that simulate a page structure?

    eg whyarewehere/philosophy/thequotidian
    (set of words chosen to indicate heirarchichal nature of a possible name structure)

    I don't see why you cant just show a generic 'page not found' if the page does not exist - i.e. if any item has incorrect wording
    That can all be done from your controller - no need to handle in htaccess

  3. #18
    Senior Member
    Join Date
    Sep 2011
    Posts
    258
    Quote Originally Posted by cretaceous View Post
    Yes but are these actual directories/ files or are they merely names of entries in your database that simulate a page structure?

    eg whyarewehere/philosophy/thequotidian
    (set of words chosen to indicate heirarchichal nature of a possible name structure)

    I don't see why you cant just show a generic 'page not found' if the page does not exist - i.e. if any item has incorrect wording
    That can all be done from your controller - no need to handle in htaccess
    Well the part of the query contains the controller name, which definitely exists in actual directories. The rest of the query aint associated with directories/files, such as actions and params.

  4. #19
    Un Re Member cretaceous's Avatar
    Join Date
    Sep 2004
    Location
    London UK
    Posts
    865
    Quote Originally Posted by cretaceous View Post
    I don't see why you cant just show a generic 'page not found' if the page does not exist - i.e. if any item has incorrect wording
    That can all be done from your controller - no need to handle in htaccess
    Build a recursive function to see if things are as you expect (in your controller)
    Parse query string value pairs as you need either via QSA or your own process

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts