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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:39:58+00:00 2026-06-14T08:39:58+00:00

I am stuck with a Symfony application using version 1.0.17 which can’t be upgraded

  • 0

I am stuck with a Symfony application using version 1.0.17 which can’t be upgraded at the moment.

Right now there is a page that contains an iframe which loads a webpage of a different action from the same module. The iframe is causing some design issues as well and some user-experience issues so I want to get rid of it and just render the HTML from the iframe directly in the page.

I just can’t figure out how to execute another action and render the view template into a variable that I can assign to the calling action’s view.

I’ve tried getPresentationFor() but that either results in a 404 on the calling page, an exception or fatal error depending on how I try it.

I think I need to put the code in the execute method of the action. The controller is an sfAction object. If I call $this->getController() I get an sfWebController object.

Calling:

$this->getController()->getPresentationFor('module', 'ContactIframeAction');

Results in a blank page; any code after that call does not get executed but if I output something before it I can see it on the page. No errors in the server error log.

Calling:

$this->getController()->getPresentationFor('module', 'ContactIframe');

just causes our 404 page to show so I think the previous call is closer to what I want.

Is there a way to render the output of another action from another action’s code?

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-14T08:40:00+00:00Added an answer on June 14, 2026 at 8:40 am

    It’s probably

    $this->theContent = $this->getController()->getPresentationFor('module', 'contactIframe'); // minus 'c'
    

    Use :

    // modules/mymodule/actions/actions.class.php
    class myPageActions extends sfActions {
    
        public function executeIndex() {
            // ...
            $this->theContent = $this->getController()->getPresentationFor('module', 'contactIframe');                  
        }
    }
    
    // modules/mymodule/templates/indexSuccess.php
    <?php echo $theContent ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Got stuck here: http://jsfiddle.net/UFkg8/ Right now the animation is top-down. What do I need
Using Symfony 2.0, I have a whole system working properly in localhost. Now I've
I'm using symfony for a project but got stuck at one point building the
Following this tutorial i'm developing a web application using symfony authentication/authorization architecture. After designing
Kinda stuck here... I have an application with lets say 5000 rows of data
I stuck with problem of mail application , i am developing a website for
I stuck while trying to compile qpid c++ with boost 1_47_0 using Visual Studio
I'm a bit stuck repairing a faulty table (on Hbase 0.92.1-cdh4.0.0, Hadoop 2.0.0-cdh4.0.0) There
Unfortunately stuck using Windows command line as opposed to Linux bash... When installing chef
EDIT: Yields that there is already new PHP framework written as extension. http://code.google.com/p/yafphp ,

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.