Where to store scripts in MVC structure
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.