Letractively / add-mvc-framework

Automatically exported from code.google.com/p/add-mvc-framework
0 stars 0 forks source link

New Idea: private or protected model_rwd::db() #86

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Description Of This Idea:
Restrict visibility of ::db() method of model so it will not be accessible 
outside the class, so all queries will be inside the class (e.g. not query`able 
in controllers and other classes)

How Can This Idea Help:
Uniform location for queries, "model"-"controller" separation

How To Implement This Idea:
simply change 
public static db() to 
protected static db()
or 
private static db()

Original issue reported on code.google.com by albertdi...@gmail.com on 8 May 2013 at 6:34

GoogleCodeExporter commented 8 years ago

Original comment by albertdi...@gmail.com on 14 May 2013 at 4:24