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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:38:49+00:00 2026-05-20T10:38:49+00:00

Please check the code below, the problem is that no form element are displayed

  • 0

Please check the code below,
the problem is that no form element are displayed in test action
not able to locate

Test.php–>Form Class

class Application_Form_Test extends Zend_Form
    {
        public $T_FILEUP;
        public $T_SUBMIT;
        /*function init 
         * initialise all the elements
         * */
        public function _init()
        {
            $this->T_FILEUP=new Zend_Form_Element_Text('image');
            //$this->T_FILEUP->setDestination(UPLOADS);

            $this->T_SUBMIT=new Zend_Form_Element_Submit('add');



        }
        /*function to generate a form for specific function
         * */
        public function generateForm()
        {
            return $this->addElements(array($this->T_FILEUP,$this->T_SUBMIT));
        }

    }

TestAction

public function testAction()
    {
        $objForm=new Application_Form_Test();
        $forms=$objForm->generateForm();
        $this->view->form=$forms;
  }

test.phtml

<?php 
//echo $this->nm;
echo $this->form->image;
?>
  • 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-20T10:38:50+00:00Added an answer on May 20, 2026 at 10:38 am

    The function name for the hook is wrong (no “_”):

    use:

            public function init()
            {
                $this->T_FILEUP=new Zend_Form_Element_Text('image');
                //$this->T_FILEUP->setDestination(UPLOADS);
    
                $this->T_SUBMIT=new Zend_Form_Element_Submit('add');     
    
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an issue with this jquery code below. Please give me advice or
I have a method (the code below is a simplified version) that parses small
I've a small problem with the code below. It is a simple program which
Summarization: Please check the comments below from David, Uwe, and other experts. ================================================================================ The
I have a form to signup with the code below: <form method=post> Username<input type=text
Please help me with a sanity check. Assuming a many-to-many relationship: Post, PostTagAssoc, Tag
Please read the whole question. I'm not looking for an approach to managing multi-lingual
i m developing site in Joomla, meanwhile i stuck in a problem,please help me
I am having a problem while sending mails through code.Actually the code is running
This code below works perfectly for all browsers except IE 7 or 8. <img

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.