Welcome Guest, Not a member yet? Register   Sign In
"The upload path does not appear to be valid"
#2

[eluser]TheFuzzy0ne[/eluser]
Are you getting any errors? Is the uploads directory writeable?

You should pass the error into the view via your $data array, so:
Code:
$data['error']="some_error";
$data['page_content']=$this->load->view('files', $data, true);

But you're code is a little out of whack, since you're loading vars after the views and not before.

I'd suggest a bit of a restructure. Some of that logic can be handled from within your views. For example, you could have a view named "login_form.php", which would contain some simple logic to display the form if the user is not logged in, and display something else if the user is. In your case, you should ideally only need to make a single call to $this->load->vars(), and only load a single view from your controller. You're main view can include the header, navigation menu, footer etc...

Hope this helps. If not, I can probably give you an example.


Messages In This Thread
"The upload path does not appear to be valid" - by El Forum - 06-27-2009, 02:05 PM
"The upload path does not appear to be valid" - by El Forum - 06-27-2009, 02:33 PM
"The upload path does not appear to be valid" - by El Forum - 06-27-2009, 02:38 PM
"The upload path does not appear to be valid" - by El Forum - 06-27-2009, 02:54 PM
"The upload path does not appear to be valid" - by El Forum - 06-27-2009, 03:02 PM
"The upload path does not appear to be valid" - by El Forum - 06-28-2009, 05:37 AM
"The upload path does not appear to be valid" - by El Forum - 06-28-2009, 05:54 AM
"The upload path does not appear to be valid" - by El Forum - 06-28-2009, 06:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB