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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:45:42+00:00 2026-05-12T23:45:42+00:00

Ahh forgive my Zend newbness, I’m trying to access this form, stored in: layouts/scripts/layout.phtml

  • 0

Ahh forgive my Zend newbness, I’m trying to access this form, stored in:

layouts/scripts/layout.phtml:

$this->layout()->userForm = $this->action('index', 'user');   

within

class IndexController extends Zend_Controller_Action
{
    public function init ()
    {    /* Initialize action controller here */
    }
    public function indexAction ()
    {
    // here
    }
}

The indexAction, I basically need the form to show up on the homepage in addition to being in the layout.

I tried accessing it with $this->_helper->layout()->userForm but I suspect the code in the controller runs before the layout as it wasn’t giving me what I wanted.

  • 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-12T23:45:42+00:00Added an answer on May 12, 2026 at 11:45 pm

    I don’t understand your question really.

    • Why by all means is your form stored in the layout folder?
    • What do you mean with ‘show up on the homepage in addition to being in the layout’? Seems you haven’t got the same definition of ‘layout’ as Zend. The layout as I understand it, contains all your contents and segments so the sentence doesn’t make sense.
    • why wouldn’t you just initiate the form and pass it to the view?

    Like so:

    $userForm = new UserForm();   
    $this->view->userForm = $userForm;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’m trying to figure out how to iterate over an array of subroutine refs.
I have a layout containing a WebView, and a ProgressBar centred on top of
Ok the below problem is solved but now its creating leak for this block
I am trying to display milliseconds in an Excel macro. I have a column
Ahh, don't you just love a good ternary abuse? :) Consider the following expression:
i have 10 layout and each layout is build with a title + subtitle
Not sure if I'm the only one who feels this... I find working with
I am trying to setup ReadFile to run asynchronously and according to MSDN ,
http://jsfiddle.net/antonpug/jfrNt/ I am trying to make all the buttons the same size, and I
It's easy! I just came across this blog post by Rudi Grobler that says

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.