Guest Posted June 17, 2014 Share Posted June 17, 2014 (edited) Hey everyone, So I am trying to develop a module for a slider in the front office that accepts images uploaded from the BO. I named the module Press. I added a function to the main class that extends Module. // Move temporary file to the uploaded file folder public function move() { // Check existence of form submission if(isset($_POST['submit_press'])) { // Define path to upload folder $destination = '{$module_dir}uploaded/'; // Move tmp_file to folder and rename it move_uploaded_file($_FILES['MOD_SKELETON_BRAND_1']['tmp_name'], $destination . $_FILES['image']['name']); } } Is it because this is not being called from a controller? Do I need to extend a controller with the same class name and then make an object and call the method using the object? Any advice would be greatly appreciated! Edited June 17, 2014 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now