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 8957611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:01:53+00:00 2026-06-15T15:01:53+00:00

All of my FW/1 controllers extend extend base.cfc. In base.cfc there is a function

  • 0

All of my FW/1 controllers extend extend base.cfc. In base.cfc there is a function called addMessage(). Messages are thing like “You have successfully logged in”. “There is an error in your data”, “Error occurred while processing request.

The addMessage() appends messages to a variable called request.arMessage (an array). When I get to the layout file, the layout file loops through all the message and displays them on the page.

I am considering replacing request.arMessage with request.qryMessage. That way I can run a QoQ and sort by severity as opposed to last in last out. See below

void function addMessage(required string message, numeric priority=0) output="false"    {

param request.qryMessageQueue = QueryNew("Priority,Message", "integer,varchar");

QueryAddRow(request.qryMessageQueue);
QuerySetCell(request.qryMessageQueue, "Priority", arguments.priority);
QuerySetCell(request.qryMessageQueue, "Message", trim(arguments.message));
}

Is this approach consistent with how MVC and FW/1 should be doing this?

  • 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-15T15:01:55+00:00Added an answer on June 15, 2026 at 3:01 pm

    I can’t speak for the requirements of MVC or FW/1, but I can tell you how to do this is your cfc.

    Instead of building an array, build a query object. Then use your Q of Q to sort it. Then use a combination of ListToArray and ValueList to create your sorted array.

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

Sidebar

Related Questions

I have a base Controller which all the controllers extend, and at base controller
I have a base controller for most of the controllers in my app like
Possible Duplicate: Is a good idea have a BaseController and make all controllers extend
I have an abstract base Controller class and all action controllers are derived from
I'd like to redirect all site traffic from all controllers to https while in
I have an webapplication that uses devise database authentication for all the controllers, however
i have several controllers which will all be using common functionality. So i have
I have mostly all of my forms for different controllers in a jquery dialog
I have an MVC application that is using MEF for the controllers, all working
I'd like to implement ASP.Net MVC application which could have controllers, views and content

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.