我对MVC的理解是,SQL (或任何与持久性相关的查询)只能在Model/Controller对象中执行。因此,指出:
# Note the model query -----^
在Rails 3中,在视图中执行查询通常是可以接受的,还是有令人信服的理由将此类查询严格委托给Model或Controller对象?这些文档只是示范性的,还
new mysqli("localhost","{USER_NAME}","{PASSWORD}","{TABLE_NAME}"); // Query was successful$getUserPasswordResult->free(); // Line 66 (See below)
我是,不是获取echo语句<