Welcome Guest, Not a member yet? Register   Sign In
I am a newbee here.
#1

[eluser]Praveen A P[/eluser]
I am following the
Quote:CREATE BLOG IN 20 Mins video
and trying to create a simple link to register.

The link never showed. Please help.

THE CONTROLLER CODE
Code:
<?php

class Ts_start extends Controller {

    function Ts_start(){
        parent::Controller();
        $this->load->helper('url');
    }
    
    function index(){
        $this->load->view('ts_start_view');
    }

    function register(){
        echo 'halwa...';
    }
}

THE VIEW CODE
Code:
<html>
<head>
<title>Stories</title>
</head>
<body>
<p>THIS IS THE SITE</p>
<p>&lt;?php anchor('ts_start/register', 'Register');?&gt;</p>
&lt;/body&gt;
&lt;/html&gt;



The text shows however the link does not.

Please help
#2

[eluser]sl3dg3hamm3r[/eluser]
you forgot echo:

Code:
&lt;?php echo anchor('ts_start/register', 'Register');?&gt;




Theme © iAndrew 2016 - Forum software by © MyBB