Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Thanked 0 Times in 0 Posts

    Where to store scripts in MVC structure

    Hello everyone,

    I'm developing a web application using the MVC structure.
    But I've a question about it.

    Where do I've to store scripts?

    I'm creating a registration form so I've to check whether a user name exists or not.
    So I created a function 'check_username($username)'. But do I've to store this function in the registration model of in a seperate 'script folder'?

    And what when I've a script used by multiple models? Do I've to implement the script in each model or do I've to put the script in a 'script folder'?

    Thanks in advance.

  2. #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Marion, IA USA
    Thanked 84 Times in 83 Posts
    Are you using an existing MVC framework or are you designing your own?
    CodingForums Supreme Overlord
    All Hail Spookster


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts