Welcome Guest, Not a member yet? Register   Sign In
Smileys error help me!
#1

[eluser]Unknown[/eluser]
I read Userguide and I have 2 file.

One Controler file:

<?php

class Smileys extends Controller {

function Smileys()
{
parent::Controller();
}

function index()
{
$this->load->helper('smiley','url');
$this->load->library('table');

$image_array = get_clickable_smileys( base_url().'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);
}

}
?>


And View smiley_view.php

<html>
<head>
<title>Smileys</title>

<?php echo smiley_js(); ?>

</head>
<body>

<form name="blog">
<textarea name="comments" id="comments" cols="40" rows="4"></textarea>
</form>

<p>Click to insert a smiley!</p>

&lt;?php echo $smiley_table; ?&gt;

&lt;/body&gt;
&lt;/html&gt;


Why I Input Url: http://localhost/index.php/Smileys/
It Show Error:

Fatal error: Call to undefined function smiley_js() in C:\Program Files\xampp\htdocs\system\application\views\smiley_view.php on line 5

I do not understand function smiley_js(). How can i fix it!


Messages In This Thread
Smileys error help me! - by El Forum - 11-20-2009, 10:47 PM
Smileys error help me! - by El Forum - 02-17-2010, 06:01 AM
Smileys error help me! - by El Forum - 02-17-2010, 06:07 AM
Smileys error help me! - by El Forum - 02-17-2010, 06:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB