• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
uploading images

#1
Hello,

I am trying to create codes to upload pictures with CI.  This is what I tried:

(Trying to follow this tutorial:  https://codeigniter.com/user_guide/libra...ading.html )


views/uploadform.php



PHP Code:
<html>
<
head>
<
title>Upload Form</title>
</
head>
<
body>

<?
php  echo $error?>

<?php  echo form_open_multipart('upload/do_upload'); ?>

<input type="file" name="userfile" size="20" />

<br /><br />

<input type="submit" value="upload" />

</form>

</body>
</html> 


controllers/cpages.php


PHP Code:
    public function uploadform() { $this->load->view('uploadform'); } 



config/routes.php


PHP Code:
$route['cpages/uploadform'] = 'cpages/uploadform'



I receiving this error messages:




404 Page Not Found
The page you requested was not found.

Any clue how to fix this error message?
" If I looks more intelligence please increase my reputation."
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.