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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:27:02+00:00 2026-06-11T17:27:02+00:00

I have just completed setting up an online system for a client, within the

  • 0

I have just completed setting up an online system for a client, within the system I have a section for reports. My client now wants the ability for a print all feature to be setup where they basically click a button and it will print 4 of the separate reports at once without having to go into them all.

They are setup such as:

/reports/snapshot

/reports/enquiries

/reports/prospects

/reports/sales

and so on….

Variables are also passed into these reports such as start date and end date but they all accept the same variables, just display different charts and graphs.

Is there anyway I can write a print all function that calls the controller and view of each of these without creating a separate all inclusive page.

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-11T17:27:04+00:00Added an answer on June 11, 2026 at 5:27 pm

    You could create a allReports() method:

    public function all_reports() {
    
        $this->snapshot();
        $this->enquiries();
        $this->prospects();
        $this->sales();
        // and so on
    
    }
    

    and it’s associated view:

    all_reports.ctp
    
    echo $this->Element('../Reports/snapshot.ctp');
    echo $this->Element('../Reports/enquiries.ctp');
    echo $this->Element('../Reports/prospects.ctp');
    echo $this->Element('../Reports/sales.ctp');
    // and so on
    

    Basically, all_reports() runs all of the report methods and they in tern will populate the view vars, then your view includes each of the reports one after the other.

    For this to work, you will need to ensure the variables you set in your various reports don’t overwrite one another.

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

Sidebar

Related Questions

We have just completed implementing a successful but problematic project. We want to get
I have just completed an application for my final year project and I need
I am just beginning on emacs, and have just completed the tutorial. As a
I just completed my first (minor) Python project, and my boss wants me to
I have a class WorkQueue , just take note about the DoNext() for now,
I am a complete Noob when it comes to GIT. I have been just
I'm using Youtube API, I'd like to have a search auto-complete feature, just like
I have just created this table: create table dbo.OrderTypes ( ID smallint primary key
we have just started using a git account of our Django website project so
I have just installed composer in my /usr/bin folder, so when from that folder

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.