Mas kenapa link nya tidak muncul:
class Home extends Controller { function Home() { parent::Controller(); $this->load->helper('url'); } function index() { $data['title']="Smartindo-Technology"; $this->init_model->displayTemplate('front/about_us', $data); } function comment() { echo "testing...."; } }
untuk viewnya: <?=anchor('comment', 'Comment');?>
pada waktu linknya di clik muncul
Firefox can't find the server at ci_tes. dan urlnya http://ci_tes/comment
thk all
Comments
seharusnya manggilnya itu
July 24, 2008 by sinapit, 2 years 40 weeks ago
Comment: 48
seharusnya manggilnya itu http://ci_tes/index.php/home/comment bukan http://ci_tes/comment soalnya file comment itu memang ga ada.
itupun hasil yg akan di tampilkan itu pasti testing.... gitu loh... :D
coba cek $config['base_url']
June 24, 2008 by koes, 2 years 44 weeks ago
Comment: 34
coba cek $config['base_url'] di file config.php. pastikan 'base_url' nya sudah benar.