Skip to main content

Pencerahan

June 18, 2008 by aataqwa

aataqwa's picture

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

seharusnya manggilnya itu

July 24, 2008 by sinapit, 2 years 40 weeks ago
Comment: 48

sinapit's picture

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

koes's picture

coba cek $config['base_url'] di file config.php. pastikan 'base_url' nya sudah benar.

Premium Drupal Themes by Adaptivethemes