php - codeIgniter base url issue -


hi new in codeigniter, having trouble link formation. in page have link page same <a href = "<?php base_url('feed');?>"><li>feed page</li></a> here feed 1 of controller . link showing me http://localhost/businesspad/localhost/businesspad/feed ---that doesn't exists. can't understand how happen. have make $config['index_page'] = ''; , add .htaccess file.

check value have assigned base_url in config.php file ,try site_url(), change:

<?php base_url('feed');?> 

to

<?php echo site_url('feed'); ?> 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -