[eluser]mrahsanahmad[/eluser]
codeigniter is great but i am having some problem, probably you guys could hellp me out
I am using a template library.. my controller_frontPAge is
function index() {
$this->template->write_view('leftPanel','frontPageLogin');
$this->template->render();
}
view_frontPageLogin.php is
<input type="text" name="username" value="<?php echo set_value('username'); ?>" />
<?php echo form_error('username'); ?>
<?php echo form_submit('btnLogin','LOGIN'); ?>
template is loading fine and FrontPageLogin is also appearing in its required place but when i press LOGIN, username field gets blank wheresas it should have kept the previous value
BUT if i use value="if(isset($POST['username'])) {echo $POST['username']}"
it remembers the entered value
The problem is if i am to use core PHP to get my tasks, then what is the use of sticking myself to codeIgniter ... I must be going wrong some where. ..
HELP ?