I want to validate if the entered value in a form is equal to a
variable defined in bootstrap.php.

This is my code (snippet):

'actualgtb' => array (
                                'rule' => array('equalTo', 
Configure::read('GTB.version')),
                                'message' => 'You must agree to the terms of 
use'
                        )

If I outcomment these 4 lines, then everything works fine. The problem
is, that there is no access to the variable GTB.version.

Any idea? Is it possible to read this variable from a Model?

Thanks for help.

Ivo

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to