Skip to Content.
Sympa Menu

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

Subject: COmanage Developers List

List archive

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


Chronological Thread 
  • From: Benn Oshrin <>
  • To:
  • Subject: Re: [comanage-dev] beforeRender() condition in app_controller.php
  • Date: Tue, 11 Oct 2011 16:50:08 -0400

Sounds good to me. Can you cut a ticket and assign it to yourself before fixing?

On 10/11/11 1:37 PM, Scott Koranda wrote:
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