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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:46:09+00:00 2026-06-15T20:46:09+00:00

I want to load a different view in a controller (not the default view)

  • 0

I want to load a different view in a controller (not the default view)

the different view is loaded but I have some code in the controller that originally belongs to the view.

The original Controller isn’t loaded when displaying the view.
Does CakePHP have a solution for this?

To make thing clear I created a scheme:
enter image description here

Who can help me with 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-15T20:46:10+00:00Added an answer on June 15, 2026 at 8:46 pm

    While i agree with all of the comments saying that this breaks MVC.

    Its possible using requestAction(). Its up to you, how you use it.

    http://book.cakephp.org/2.0/en/controllers.html#Controller::requestAction

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

Sidebar

Related Questions

I'm trying to load a view controller with a different XIB, but for some
I have X sections. I want to lazy load images in different Custom Cell
I have a UIWebView object declared in my view controller and I want to
I have been trying to call a different controller from a jsp page that
I have created a custom view hierarchy in an XIB that I want to
I want to use UIWebview in different view controllers,but i don't want these view
I want to know how can I perform VS2008 load test from five different
at first sorry my bad English I want load model in my plugin controller
I want to load an image via css that stretches to the entire screen.
I want to make a general controller that can be called after the page

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.