CodeIgniter Forums

Full Version: CodeIgniter Blog Tutorial Bug
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Kikloo[/eluser]
Hi,

I was going to blog tutorial and I got stuck when CI gave error on line. I have double checked in CI tutorial and the line is same but i get the error:

Code:
<?=form_hidden("entry_id", $this->uri-segment(3));?>

Quote:Fatal error: Call to undefined function segment() in /home/avissone/public_html/siab/system/application/views/comment_view.php on line 11

How to fix ?

Thaks.

El Forum

[eluser]Pascal Kriete[/eluser]
You're missing a >, uri-> :
Code:
<?=form_hidden("entry_id", $this->uri->segment(3));?>

El Forum

[eluser]Kikloo[/eluser]
Hi,

So embrassing. Thanks for pointing out.

Thanks.