- Previous thread: Fieldset Issues under IE 8
- Next thread: ACL, Auth, and terminology.
- Threads sorted by date: cakephp 200906
I am running into a problem validating the Wizard data before going to the
next step.
I have an Investor Controller (Investor controller contains the wizard)
where they are adding a Listing. The Listing its self HABTM tables but its
not validating them.
I have validation set up and tested and it works for the other parts of the
site. The Listing thru the wizard steps allows the Investor to select
(checkbox) options from a HABTM table
Sure I know they are only checkboxes but my validation checks the submitted
value to be numeric and compares it against the values in the database so a
"bad" user can not edit the value with firebug and save junk to the db.
I even added debug($this->data); first thing in the validation function and
nothing so the data is not even getting to the Program table
I have
var $uses = array('Investor', 'Program'); // testing validating the Program
first
also tried
App::Import('Model', 'Program');
$program = new program();
function _processPrograms()
{
$this->Program->set($this->data);
// tried $this->Investor->Program->set($this->data);
if ($this->Program->validates()) {
return true;
}
return false;
}
One thing I noticed was on the form its self where the Program checkboxes
show up the HTML rendered is
Commercial Investor Certification
where normally it would be Program Program2
All the other fields validate...just not anything related to a HABTM.
Anyone have any ideas?
Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Related Threads
- svn commit: r702676 - /tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java - tomcat
- gcc-4.2-20081008 is now available - gcc
- Using proxy: for mysql maps - postfix
- Finding pattern in strings - ruby
- Patch set for adding user activity tracking - mysql
- MYSQL PATCHES FOR ETCH - debian
- Re: [Fortran, Patch] Fix CPP <include_path> (PR 37821) - gcc
- [GENERAL] psql: what's the SQL to compute the ratio of table sizes? - pgsql
- Gems (1.3.0) not visible from ruby (1.8.7) - ruby
- [PING] Fix PR rtl-optimization/37769 - gcc
- project in python - python
- Re: What could be causing unexpected reads to acd0? - freebsd