Jump to content


URI strings in view flexigrid

segment forms

  • Please log in to reply
2 replies to this topic

#1 mavershim

mavershim

    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

Posted 12 November 2012 - 07:14 AM

Hi,

I'm trying to edit the edit form of flexigrid and want to show additional buttons base on uri string. but I can't access or show it. if I try this

echo $this->uri->segment(3);

on the edit template a error is produce. I also try
echo CI_URI::segment(3);

but no result is found.


How can I get the segments

Thank you.. Grocerycrud rocks...

#2 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 12 November 2012 - 07:51 AM

Hi! try this:
$ci = &get_instance();
echo $this->ci->uri->segment(3);


#3 mavershim

mavershim

    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

Posted 13 November 2012 - 03:21 AM

Thanks Victor.. Now its working. I have another question how can I get the value of the fields pass by crud so I can enable or show different buttons on add/edit templates





Also tagged with one or more of these keywords: segment, forms

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users