[RESOLVED] Issue with validation + coolfactor's View library (I'm a retard) |
[eluser]awpti[/eluser]
So, I'm using coolfactor's View library for ignitedjobs.com Whenever I 'run' the validation, any 'part' I set doesn't get defined in the view, ex (in the controller): $this->view->part('header', 'tpl/header'); $this->view->part('footer', 'tpl/footer'); And based upon the true/false of $this->validation->run(), I load the body ( $this->view->load('job_accepted'); ) This, for a reason I can not fathom, results in $header and $footer being undefined in the view. You can see it here: http://ignitedjobs.com/addjob/ Just hit submit (there's no code to handle the results other than the validation run - it's not creating entries). Code is the same as any other page method. Should I ditch CF's view library? I didn't see any way to handle 'parts' with CI's view lib.
[eluser]awpti[/eluser]
Other info: Here's the 'index': Code: function index() And the validation: Code: function validate() |
Welcome Guest, Not a member yet? Register Sign In |