Felix you are right. I guess this question has been asked before.
There are a bit in bootstrap.php of how to do this. Nice find.
I simply added the next two lines of code into my bookstrap.php and it
suddenly inherited all of the models from the other application (in
the folder 'app'). Works grea
The simplest method to have a portable system to share source code with php
is to include a file inside another.
Example if you want model.php and model1.php with the same source code
inside:
Every changes on model.php is reflected on model1.php.
file: model1.php
Better of sym
If both apps are running on the same machine which I assume, you should
be able to simply put the Models in one application and then go to
/app/config/bootstrap.php and create a:
$modelPaths = array('full path to models', 'second full path to models',
'etc...');*
*array where you add the full
Hm... maybe. I develop on windows machine. But qa/production are done
on linux.
I did some searching at your prompting, I guess there is a utility
called linkd which emulates symlinks on widows. I gotta find it and
get it running. We'll see.
The SVN thing.. hm.. gotta figure this out. Because th
On Apr 5, 2007, at 4:14 PM, rtconner wrote:
>
> Is there a way to have two applications share a Model, and possibly
> some componants and helpers also?
>
> I realize in general most applications will have different data sets
> and sharing Models will make no sense at all. However if you use the
Is there a way to have two applications share a Model, and possibly
some componants and helpers also?
I realize in general most applications will have different data sets
and sharing Models will make no sense at all. However if you use the
same model twice with two different database configs, now