codeguy/Recess-Framework-Model-Validations — Issue #1: what version of Recess required?
Author: vann
Created: 2012-02-03 01:27:44+00:00
State: open

I'm getting a couple errors. I had to add an init() function to the ValidationPlugin, otherwise I'd get this error:

PHP Fatal error: Call to undefined method ValidationPlugin::init() in /home/webuser/iHealth/htdocs/_rest/recess/recess/framework/Application.class.php on line 79

Adding this got me past that error:

class ValidationPlugin {

// added by vann so plugin will init.
function init(Application $app) {

}

}

Now the plugin loads, but I get another error when I invoke the model validation:

PHP Fatal error: Call to undefined method Model::getDescriptor() in /home/webuser/iHealth/htdocs/_rest/plugins/ValidationPlugin/wrappers/ValidatesWrapper.class.php on line 83

I can continue modifying code, but I'm beginning to suspect that I don't have the version of Recess installed that this Plugin was written against. I believe I have the latest public release of Recess, 0.2, which has been around for a year or two now, so I'm surprised.

Any ideas?