Upload Error |
Hello,
What am I doing wrong? I get this error message. Quote:An uncaught Exception was encountered Controller: PHP Code: public function insert_produckt() Model: PHP Code: public function insert_produckt($post_image) View: Code: <?php echo validation_errors(); ?>
You have used this in your controller:
PHP Code: $this->Admin_model->insert_produckt(); But in your model you have this: PHP Code: public function insert_produckt($post_image) Hence, too few arguments. i.e. You have not set the $post_image argument. Hope that helps, Paul.
If you want to use it with or without a parameter, then do this.
PHP Code: insert_produckt($post_image = null); What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |