Input Error in Linux : Undefined property: Welcome::$input |
I am learning codeigniter. I am watching a course videos in udemy. I wrote the codes in the video. CODES ARE WORKING ON WINDOWS BUT NOT WORKING IN LINUX Please help me.
Controller : Code: class Welcome extends CI_Controller { View : Code: <form action="<?=base_url("Welcome/save")?>" method="post">
@musti7084,
Have you tried echoing out any value (instead of just the input value) just to see if you are able to get to the welcome/save location? have you tried typing in the location the form is trying to push the results to? Does the Welcome page work without any errors? What is the permission of the Welcome.php file? (04-30-2020, 04:57 PM)php_rocs Wrote: @musti7084, Welcome page is working and its permission is 755. I copied codeigniter folder and pasted htdocs on linux. No change.
@musti7084,
Assuming that you are using CI3 you forgot to load the necessary helpers/libraries $this->load->helper(array('form', 'url')); $this->load->library('form_validation'); Use this as an example https://codeigniter.com/userguide3/tutor...ate-a-form . (05-01-2020, 11:49 AM)php_rocs Wrote: @ musti7084, But these codes are working on windows. Why doesn't work on linux ?
@musti7084,
Another thing to look for is CaSe sensitivity. Windows is loose where linux is exact when it comes to case sensitivity. For example welcome.php and Welcome.php is the same in Windows but different in Linux. Check to make sure your code (Controllers, Models and Views are using the exact names. |
Welcome Guest, Not a member yet? Register Sign In |