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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:09:40+00:00 2026-05-16T21:09:40+00:00

I have seen numerous examples of the Command pattern But they all tend to

  • 0

I have seen numerous examples of the Command pattern

But they all tend to be in the context of a desk-top application.

i.e “Command decouples the object that invokes the operation from the one that knows how to perform it”

In the context of a pure HTML (but Zend Framework MVC driven) website, I am thinking of a user ‘clicking a link’ which should refresh the current page and invoke a certain command. No matter which page of the site the user is on.

An example would be, in a blogging app:

i.e

To be able to present an HTML form button/s to, say, “Delete Blog Post” on both:

  • ‘List Page’ (lists blog posts)
  • ‘Edit Page’ (edits a blog post)

  • The form action on the ‘List Page’ points to ‘List Page’

  • The form action on the ‘Edit Page’ points to ‘Edit Page’

I suspect the Controller part of the ZF MVC is kind-of a command pattern. However, that routes URLs to a particular controller. I am trying to ALSO route command actions to particular command receivers at the same time.

Does the command pattern apply here or is it only really useful in the context of rich graphical user interfaces – such as desk-top apps or AJAX-enabled sites?

  • 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-16T21:09:41+00:00Added an answer on May 16, 2026 at 9:09 pm

    I’d say that is does not apply here and that it over complicates something that can be achieved pretty simply using ZF’s partials.

    Creating an object for all buttons or even a button seems over kill for a web application? The presence of the button should be based on your ACL, eg does the user have sufficient permissions to have access to this button. The same ACL check should of course be done on the URL that the button points to.

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

Sidebar

Related Questions

I have seen numerous examples on some SharePoint blogs regarding the use of the
I have seen some people creating properties in C# really fast, but how did
I have a C# application, and I need to dump some output to a
I have seen that most people will do it with this solution that on
I have seen instructions about creating a skeleton file in vim. This involves creating
Does anyone have some code that will determine if an IP address (IPv4 or
In past year I've made numerous projects with NoSQL json based databases - the
What are the range of tactics available for selecting records on low selectivity columns?
I need to be able to hide the soft keyboard in response to clicking
Can anyone clarify if the GDI StretchBlt function for the workstation Win32 API performs

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.