I am a beginner in CodeIgniter framework and I have problem with form action.
I don't have any problems when I do it on this way:
<form name="form" method="post" action="<?php site_url('controller_admin/method1') ?>">
In order to use
base_url(), you must first have the URL Helper loaded. This can be done either in
$autoload['helper'] = array('url');
Or, manually:load it in function construct of controller
Once it's loaded, be sure to keep in mind that
base_url() doesn't implicitly print or echo out anything, rather it returns the value to be printed:
Remember also that the value returned is the site's base url as provided in the config file.