Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8030065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:38:48+00:00 2026-06-05T00:38:48+00:00

In my app i record all page views in the database, something like this

  • 0

In my app i record all page views in the database, something like this in AppController:

$this->Link->save(array(
    'controller' => $this->request->params['controller'],
    'action' => $this->request->params['action'],
    'var1' => $this->request->params['pass'][0],
    'var2' => $this->request->params['pass'][1]
));

which works fine, but some of the URLs people (or bots) type in are 404s. How can i check to see if these links are real or not.

Lots of requests i get are from previous websites on the same domain, requests to /images etc that Cake thinks is a controller.

I don’t mind if the check happens before entering into the database or after being retrieved from the database in a view.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T00:38:51+00:00Added an answer on June 5, 2026 at 12:38 am

    Haven’t tried this myself, but you can try calling Router::parse()

    You provide the full URL, and the return value will be cake’s route array where you can see the values of controller, action etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making an app where I produce sound and record this sound, evaluate
I'd like to record the audio coming from my iPhone app. So after the
I would like to keep a log of each page view for all users
I'm writing a middleware that does something like this Given I am logged in
With ember-data I'm loading all records of a model with: App.adapter = DS.Adapter.create({ findAll:
I am using AVFoundation framework in my iPad app to record videos.When recording of
i want to record my app in ipad is there any esay way to
I am creating an exercise app that will record the weight used and the
I have an App in which I record the sound files and store it
I am developing an app whenever a user add some details the record get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.