Hi all, Running the latest version of CakePHP and I just set up Flash messages as per the tutorial here 'http://wiki.cakephp.org/tutorials:flashing' which works fine until you specify a layout for it to use. Then you get errors like this:
Notice: Trying to get property of non-object in C:\www\RainbowSongs\cake\libs\view\view.php on line 217 (and for each line down to line 233 of view.php). As far as I can tell this is because session.php does this: $ctrl = null; $view = new View($ctrl); when you pass a new layout to the setFlash function. Then when the constructor of View is called it does this: function __construct(&$controller) { $this->controller =& $controller; // etc.. } with the result that line 217 as an example tries to do this: $this->_viewVars = $this->controller->_viewVars; // where controller is null. Am I missing something or is this a bug to be fixed? Thanks, Ianh --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---