• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CodeIgniter Blog Tutorial Bug

#1
[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.

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

#3
[eluser]Kikloo[/eluser]
Hi,

So embrassing. Thanks for pointing out.

Thanks.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.