View Single Post
Old 11-28-2011, 10:54 AM   PM User | #1
OrangeTux
New to the CF scene

 
Join Date: Nov 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
OrangeTux is an unknown quantity at this point
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.
OrangeTux is offline   Reply With Quote