Jump to content

Search the Community

Showing results for tags 'internal server error'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. This is my page and the relevant code. project/applicaiton/views/scripts/index/index.phtml: <div id="welcome"> Please select the affiliate: <br><br> <?= $this->form ?> </div> project/application/views/scripts/index/units.phtml: <div id="welcome"> Please select department for <?= $this->affiliate ?>: <br><br> <?= $this->form ?> </div> project/application/controllers/IndexController.php: <?php class IndexController extends Zend_Controller_Action { protected $_redirector = null; public function init() { $this->_redirector = $this->_helper->getHelper('Redirector'); } public function indexAction() { $inputForm = new Application_Form_Input(); $inputForm->buildAffiliateSelectForm(); if ($this->_request->isPost()) { $params = $this->_request->getPost(); $affiliateId = $params['affiliateid']; $inputForm->setAffiliateId($affiliateId); if ($inputForm->isValid($params)) { $affiliateParams = array('affiliate' => $affiliateId); $this->_helper->redirector('units', '', null, $affiliateParams); } else { $inputForm->populate($params); } } $this->view->form = $inputForm; } public function unitsAction() { $request = $this->getRequest(); $getAffiliate = $request->getParam('affiliate'); $affiliateId = (isset($getAffiliate)) ? $getAffiliate : $this->options['defaultaffiliateid']; $inputForm = new Application_Form_Input(); $inputForm->setAffiliateId($getAffiliate); $inputForm->buildDepartmentsSelectForm(); $affiliatesTable = new Application_Model_DbTable_Affiliates(); if ($this->_request->isPost()) { $params = $this->_request->getPost(); $affiliateId = $params['affiliateid']; $departmentId = $params['departmentid']; if ($inputForm->isValid($params)) { $params = array('affiliate' => $affiliateId, 'department' => $departmentId); //$this->_helper->redirector('report', // 'report', null, $params); } else { $inputForm->populate($params); } } $this->view->form = $inputForm; } } Now, on index.phtml, when I click the submit button I go from this URL: http://hostname-internal/user-directory/project/ To this: http://hostname-internal/user-directory/project/hldm/units/affiliate/2 And on the second page, I get a 500 Internal Server Error. My question is why? Why not print something, anything, out? What am I missing?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.