Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] beforeRender() condition in app_controller.php

Subject: COmanage Developers List

List archive

[comanage-dev] beforeRender() condition in app_controller.php


Chronological Thread 
  • From: Scott Koranda <>
  • To: comanage-dev <>
  • Subject: [comanage-dev] beforeRender() condition in app_controller.php
  • Date: Tue, 11 Oct 2011 12:37:56 -0500

Hi,

I app_controller.php in the beforeRender() function I see
this:

if($req != 'Page') // Page doesn't have an actual model
$model = $this->$req;

Should this instead be

if($req != 'Page' and $req != 'CakeError') // Page doesn't have an actual
model
$model = $this->$req;

so that instances of CakeError can "get through"? Without that
change then the error that I see always happens at the line

$model = $this->$req;

Scott




Archive powered by MHonArc 2.6.16.

Top of Page