![]() |
Validating File - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Validating File (/showthread.php?tid=9658) |
Validating File - El Forum - 07-03-2008 [eluser]Michael Wales[/eluser] I've used this method before - I have no idea why it isn't working at the moment (maybe a change in 1.6.3?). Anyone mind giving me a second look to see if they can determine why my callback function is not being called? View: Code: <?php echo form_open_multipart('apply/' . $job->id, array('id'=>'apply')); ?> Controller: Code: function apply($id = NULL) { Validator (I know this is being called, a die() within works perfectly) - this file's parent is MY_Validation, therefore the calls to methods within the Validation class you see here are valid.: Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed.'); Anyone see what I am missing here? Validating File - El Forum - 07-03-2008 [eluser]Michael Wales[/eluser] Okay... I'm retarded. I didn't notice until I wrote this post. Quote:this file’s parent is MY_Validation, therefore the calls to methods within the Validation class you see here are valid Therefore - my method check_resume belongs to the Validation class and the Validation class is looking for it to be within the Controller class. Yay for more extending! Validating File - El Forum - 07-03-2008 [eluser]flojon[/eluser] I think the callback function must be defined in your controller. Since it's called as Code: $this->CI->check_resume EDIT: To late... :-) |