CI_Cart::contents()

contents([$newest_first = FALSE])

Parameters:
  • $newest_first (bool) – Whether to order the array with newest items first
Returns:

An array of cart contents

Return type:

array

Returns an array containing everything in the cart. You can sort the order by which the array is returned by passing it TRUE where the contents will be sorted from newest to oldest, otherwise it is sorted from oldest to newest.

doc_CodeIgniter
2016-10-15 16:30:58
Comments
Leave a Comment

Please login to continue.