CI_URI::slash_rsegment()

slash_rsegment($n[, $where = 'trailing'])

Parameters:
  • $n (int) – Segment index number
  • $where (string) – Where to add the slash (‘trailing’ or ‘leading’)
Returns:

Routed segment value, prepended/suffixed with a forward slash, or a slash if not found

Return type:

string

This method is identical to slash_segment(), except that it lets you add slashes a specific segment from your re-routed URI in the event you are using CodeIgniter’s URI Routing feature.

doc_CodeIgniter
2016-10-15 16:32:03
Comments
Leave a Comment

Please login to continue.