Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 4 Post Problem
#4

(This post was last modified: 10-16-2020, 04:48 AM by includebeer.)

(10-15-2020, 11:15 PM)InsiteFX Wrote: You may also need to use all lowercase for the file names, depending on the server.

No. The file and the class name must start with a capital letter. 

See the doc: https://codeigniter4.github.io/userguide...ello-world

Quote:The file must be called ‘Helloworld.php’, with a capital ‘H’.
Controller class names MUST start with an uppercase letter and ONLY the first character can be uppercase.

(10-15-2020, 11:15 PM)InsiteFX Wrote:
PHP Code:
<form  action="<?php echo base_url('Controller/Method'); ?>" method="POST" enctype="multipart/form-data" >

// So if your controller is Ekle and your method is ekle it would be like this/
<form  action="<?php echo base_url('ekle/ekle'); ?>" method="POST" enctype="multipart/form-data" 

This depend on how the routes are defined. If auto routing is turned off this won't work either. 
PHP Code:
$routes->setAutoRoute(false); 

https://codeigniter4.github.io/userguide...uting.html
Reply


Messages In This Thread
Codeigniter 4 Post Problem - by onurcicek - 10-15-2020, 04:20 AM
RE: Codeigniter 4 Post Problem - by InsiteFX - 10-15-2020, 11:15 PM
RE: Codeigniter 4 Post Problem - by onurcicek - 10-15-2020, 11:47 PM
RE: Codeigniter 4 Post Problem - by includebeer - 10-16-2020, 04:45 AM
RE: Codeigniter 4 Post Problem - by InsiteFX - 10-16-2020, 01:07 PM
RE: Codeigniter 4 Post Problem - by includebeer - 10-16-2020, 01:32 PM
RE: Codeigniter 4 Post Problem - by paulbalandan - 10-20-2020, 07:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB