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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:20:27+00:00 2026-05-17T16:20:27+00:00

In my index/index action, I’m calling a form class that I created, and output

  • 0

In my index/index action, I’m calling a form class that I created, and output the form in the index.phtml view like this

<?php
echo $this->form;

But when I view the page source, all I’m getting is the form markup. I don’t get any HTML HEAD BODY tags to make this a valid markup page. How do I add these to all my pages?

I have layouts/scripts/layout.phtml but I’m not sure what’s the correct way to use it.

  • 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-17T16:20:28+00:00Added an answer on May 17, 2026 at 4:20 pm

    It sounds like you have not enabled the layouts.

    The typical way to so this is via your configs/application.ini file:

    resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
    resources.layout.layout = "layout"
    

    The file application/layouts/scripts/layout.phtml should have the html code for your template, typically employing (as noted in the answer by @Alkexander) the view-helpers headLink(), headScript(), etc.

    See Zend Framework: Documentation: Using Zend_Layout

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

Sidebar

Related Questions

I have this link: <a href=<?php echo $this->url(array('controller'=>'index','action'=>'form'),NULL,TRUE);?>> Form </a> With this I get
I am currently outputting the url of a particular module like so: $this->view->url(array('controller'=>'index','action'=>'index','module'=>'somemodule')) The
I'd like to have an Index action for a Users controller that takes an
I would like that the Index action doesn't appear in the url. For example,
This is the Index action, that fills the possible Genders into the ViewBag for
I have a created a list view for one of my controller's index action.
It give me this error : Undefined index: action in LINE : $act=$_POST['action']; <?php
If I define an Action filter that implements IActionFilter like so: public class FooAttribute
I have a HomeController with an Index action that shows the Index.aspx view. It
This is my first approach to Zend.Having this index action: class IndexController extends Zend_Controller_Action

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.