[eluser]Amar Babu Boddu[/eluser]
Thanks for the reply rogierb
Controller:
<?php
class Smileys extends Controller {
function Smileys()
{
parent::Controller();
}
function index()
{
$this->load->helper('smiley');
$this->load->library('table');
$this->load->helper('url');
$image_array = get_clickable_smileys('smileys/', 'comments');
$col_array = $this->table->make_columns($image_array, 8);
$data['smiley_table'] = $this->table->generate($col_array);
$this->load->view('smiley_view', $data);
}
}
?>
View:
<html>
<head>
<title>Smileys</title>
<?php echo smiley_js('comments','comments');?>
</head>
<body>
<form name="blog">
<textarea name="comments" id="comments" cols="40" rows="4"></textarea>
</form>
<p>Click to insert a smiley!</p>
<?php echo $smiley_table; ?>
</body>
</html>
Can u please tell me where the error is????
Fatal error: Call to undefined function smiley_js() code\application\views\smiley_view.php on line 5