Jump to content

Trying Display Output From Mssql Database Using Zf1


yoursurrogategod

Recommended Posts

Hi everyone, when I run my view, this is the result that I get:

Request Object object(Zend_Controller_Request_Http)#92 (15) {

["_paramSources":protected] => array(2) {

[0] => string(4) "_GET"

[1] => string(5) "_POST"

}

["_requestUri":protected] => string(86) "/coder/coc/reports/reportsDisplay/report_type/dischargedWithoutDinstr/institution/TZK"

["_baseUrl":protected] => string(11) "/acodercoc"

["_basePath":protected] => NULL

["_pathInfo":protected] => string(75) "/reports/reportsDisplay/report_type/dischargedWithoutDinstr/institution/TZK"

["_params":protected] => array(7) {

["controller"] => string(7) "reports"

["action"] => string(14) "reportsDisplay"

["report_type"] => string(23) "dischargedWithoutDinstr"

["institution"] => string(3) "TZK"

["module"] => string(7) "default"

["encounter_institution"] => string(3) "TZK"

["inst"] => string(3) "TZK"

}

["_rawBody":protected] => NULL

["_aliases":protected] => array(0) {

}

["_dispatched":protected] => bool(true)

["_module":protected] => string(7) "default"

["_moduleKey":protected] => string(6) "module"

["_controller":protected] => string(7) "reports"

["_controllerKey":protected] => string(10) "controller"

["_action":protected] => string(14) "reportsDisplay"

["_actionKey":protected] => string(6) "action"

}

 

 

 

 

 

Note: Please use Page Setup to hide unwanted headers and footers and to set correct margins, according to these directions.

 

Note: Please use Page Setup to hide unwanted headers and footers and to set correct margins, according to these directions.

The settings could not be made automatically because your computer is blocking 'ScriptX' (an ActiveX control).

 

 

An error occurred

 

Page not found

 

Exception information:

 

Message: Action "reportsdisplay" does not exist and was not trapped in __call()

Stack trace:

 

#0 D:\ZendServer\share\ZendFramework\library\Zend\Controller\Action.php(518): Zend_Controller_Action->__call('reportsdisplayA...', Array)

#1 D:\ZendServer\share\ZendFramework\library\Zend\Controller\Dispatcher\Standard.php(295): Zend_Controller_Action->dispatch('reportsdisplayA...')

#2 D:\ZendServer\share\ZendFramework\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))

#3 D:\ZendServer\share\ZendFramework\library\Zend\Application\Bootstrap\Bootstrap.php(97): Zend_Controller_Front->dispatch()

#4 D:\ZendServer\share\ZendFramework\library\Zend\Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()

#5 D:\www\andrew\coc\public\index.php(26): Zend_Application->run()

#6 {main}

Request Parameters:

 

array (

'controller' => 'reports',

'action' => 'reportsDisplay',

'report_type' => 'dischargedWithoutDinstr',

'institution' => 'TZK',

'module' => 'default',

'encounter_institution' => 'TZK',

'inst' => 'TZK',

)

This is my view:

<p>Hello world</p>
<?php
$this->headLink()->appendStylesheet($this->serverUrl($this->baseUrl('/css/continuity-form-style-v3.css')), $media = "all");
$pv = $this->patientVisit; /* @var $pv Application_Model_Entity_PatientVisit */
$reports= $pv->getReports();/* @var Application_Model_Entity_CPM */
?>
<div>
<?php
// find the type of report that the user would like to retrieve.
$reportType = $request->getParam('report_type');
if ('dischargedWithoutDinstr' == $reportType) {

}
elseif ('dischargedFaxStatus' == $reportType) {

}
elseif ('dischargedFaxStatusWeek' == $reportType) {

}
// this executes faxStatusRecent when there are no other options.
else {

}
?>
</div>

Now, what am I doing wrong? Am I missing something? Should I show more code of some sort?

This is my controller, called ReportsDisplay.php:

<?php
class ReportsController extends Zend_Controller_Action {
   /**
 * This is the initialization method that we can use for debugging or
 *  setting some values whenever this class is instantiated.
 */
   public function init() {
    //Zend_Debug::dump(get_declared_classes());
    // dump the contents of the request object as you see fit.
    //Zend_Debug::dump($this->getRequest(), 'Request Object');
   }
   /**
 * This is the reportsAction, it's here for making sure that the reports
 *  page is displayed without an issue.
 */
   public function reportsAction() {
   }

   public function reportsDisplayAction() {

   }
   public function indexAction() {
    $reportsForm = new Application_Form_Reports();
    $this->view->form = $reportsForm;
    $params = $this->_request->getParams();
   }
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.