1
我正在使用Codeigniter进行项目。购物车行数
这是我的车是什么样子
1号| Appple |数量-2
2号|橙色|数量-3
3号|橙色|数量-3
通常如果我使用“$ this-> cart-> total_items();” 。我会得到2 + 3 + 3 = 8。 但是,我只想要rowcount(看到有三行)。我想显示'3'。有没有像'$ this-> cart-> rowcount()'的东西?
[用户指南](http://ellislab.com/codeigniter/user-guide/libraries/cart.html)和查看库的源代码将回答你自己的问题。 –