Where do I put a new class file, and how do I import it in the Application controller?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
New classes for both the Java and Scala versions of Play 2 are meant to be a part of the
app/models/package. And the import would simply beimport models.className.You should check out the tutorial they have listed on the PlayFramework site, it should be of use to you, and can be found here: http://www.playframework.org/documentation/2.0.1/ScalaTodoList