i am working on a project in which we have two projects, one at admin
side and another at viewer side and we are using the same database for
that. now i am confused with this thing that can my admin project model,
controllers can be used with user project side.can i share the same
validations put in one model in admin project or i will have to create
again in user or viewer project?
if anyone is known about this, please help me out. your help will be
appreciable, thanks.
That said, you can share things numerous ways. Use SVN:Externals or Git
submodules to share models / controllers across apps. Or use plugins. Or
use
symlinks. Or use REST with ActiveResource.
Lots of options, but the simplest is to just use the same app for admins
and
viewers.