洞察探索open banking如何通过小程序容器技术助力金融企业实现数据安全和数字化转型
791
2022-10-26
NVelocity and Collections (and Possibly Arrays)
I just spent 40 minutes banging my head against a pointy sharp wall. I’m using NVelocity as my view engine on a Monorail project and couldn’t figure out how to access an element of a collection.
$collection[0] // Doesn't work$collection(0) // Nuh-uh$collection.[0] // Nope$collection.get(0) // As per Velocity Docs. Nope$collection.get_Item(0) // THIS WORKS!
Ok, so that’s incredibly not obvious. I couldn’t find any reference to it on the Castle Project Website, the Velocity docs the Castle site refers you to, or pretty much anywhere. I did find it in the google group though, but only after a lot lot lot of searching. So hopefully this will save someone out there a few minutes of their life.
Or maybe I should just switch to Brail.
http://jamesthigpen.com/blog/2008/06/04/nvelocity-and-collections-and-possibly-arrays/
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~