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

  • Home
  • SEARCH
  • 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 1098275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:33:20+00:00 2026-05-17T00:33:20+00:00

In my app, I want to add a user notification each time a user

  • 0

In my app, I want to add a user notification each time a user receives a comment on an image or other page. Therefore in my add action in my images controller, I’d like to also call the addNotifications action which is in my Notifications controller. I’m trying to stay away from requestAction based on the warnings, but is there another way?

Workflow is this:
New event occurs -> trigger addition of notification in notifications table -> email user that notification exists.

  • 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-05-17T00:33:21+00:00Added an answer on May 17, 2026 at 12:33 am

    If it’s going to be a notification for all sorts of things, then I would consider something in the app_controller as this will make it available across your whole application. Meaning you’ll be able to call something like

    $this->Notify($user['User']['email'], 'MyNotifyType', 'MyTemplateName');
    

    Then you can deal with the other bits in your app controllers notify function. You might need to add your User model to your app_controller, which could be tricky.

    I would try using uses() as this could allow you to add the model and thus pull user data from your app_controller if you wanted to say include the users last login details, username or formal greeting etc. http://api.cakephp.org/class/controller

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

Sidebar

Related Questions

I'm using Google Engine App with Python. I want to add custom user authentication.
I want to add a custom URL to my iPhone app so other apps
I want to add a scheduled task to a client's ASP.NET app. These posts
I want our app to show the online help page (so it's always up
I have a winforms app and i want to keep track of every time
I want to build the 'add user' functionality as it is available in the
I have an existing Silverlight 3 app that I want to add Live Mesh
HI, I am developing a ASP.NET App and I want to add elmah. The
i want to add some options when a user presses the menu button, i
I want to add a view to my application that allows the user to

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.