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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:36:07+00:00 2026-05-18T04:36:07+00:00

this is my form script: located in application/forms and i copy it form here

  • 0

this is my form script: located in application/forms and i copy it form here and by the way im using xampp

   class Form_LoginForm extends Zend_Form
{
 public function init()
     {
         $username = $this->addElement('text', 'username', array(
             'filters'    => array('StringTrim', 'StringToLower'),
             'validators' => array(
                 'Alpha',
                 array('StringLength', false, array(3, 20)),
             ),
             'required'   => true,
             'label'      => 'Your username:',
         ));  ect.////

}

and this my authentication script.. located in application/controller:

class AuthenticationController extends Zend_Controller_Action {

    public function loginAction()
        {
           $form = new Form_LoginForm(); // doest work
           $this->view->form = $form;

           $myDb = $this->getAuthAdapter();
           $userName = 'user';
           $password = 'ds';

           $myDb->setIdentity($userName)
                ->setCredential($password);

       }

  private function getAuthAdapter(){
     $myDb = new Zend_Auth_Adapter_DbTable(Zend_Db_Table::getDefaultAdapter());
     $myDb->setTableName('zuser')
          ->setIdentityColumn('table1')
          ->setCredentialColumn('table2');

     return $myDb;
    }

}

i want to call the class form Form_LoginForm inside the AuthenticationController but it gives me and error: *Fatal error: Class ‘Form_LoginForm’ not found in C:\xampp\htdocs\zendframework\sampleSite\application\controllers\AuthenticationController.php on line 18*
my question is what is the right way to call a class forms.. and where is the __autoload located?

  • 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-18T04:36:08+00:00Added an answer on May 18, 2026 at 4:36 am

    Try changing class Form_LoginForm extends Zend_Form into class Application_Form_LoginFrom extends Zend_Form and then in you’re AuthController $form = new Application_Form_LoginForm

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

Sidebar

Related Questions

WHen I submit this form it downloads the php script that it refers to.
<form name=vegForm action=veg.aspx > <select onchange='this.form.submit()'> <script type=text/javascript> for (i = 0; i <
This simple script should theoretically check the form for errors and then print any
This is a little mailing script that gets the information from the form and
I wrote this script to for a contact form on my website, everything works
I have this form: <%= form_tag posts_path, :method => :get, :class => search_nav do
i have this form to serialize once i click the submit button, <form class=cashier_forms
now i have this form post script <? if(isset($_POST['baslik'])) { $sql = INSERT INTO
I'm using reCaptcha in this form I build, but for some reason, it loses
Assume that the application is physically located at: C:\inetpub\wwwroot\MyApplication This has been converted into

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.