 <p>Sure, just follow a few easy steps:</p> <h3>1. Put your models in a shared directory</h3> <p>For example, if your current directory structure looks like this:</p> <pre><code>/www /application1 /protected /models /application2 /protected /models </code></pre> <p>Create another "shared" directory. It's a good idea to put some structure in there as well, in case you want to share more than just some models:</p> <pre><code>/www /application1 /protected /models /application2 /protected /models /shared /models </code></pre> <p>Put the active record models you want to share in <code>/www/shared/models</code>.</p> <h3>2. Alias the shared directory in both applications</h3> <p>Go to your <code>main.php</code> configuration file in both applications and create an alias for the shared directory:</p> <pre><code>Yii::setPathOfAlias('shared','../shared/'); // or use an absolute path </code></pre> <h3>3. Import shared models</h3> <p>Still in your <code>main.php</code> configuration, import your shared models:</p> <pre><code>'import'=&gt;array( // ...existing imports here... 'shared.models.*', ), </code></pre> <p>You can now directly refer to the shared classes anywhere in your application and Yii will load the appropriate classes automatically.</p> <p>If you later add more directories to <code>/shared</code> then simply add corresponding lines to the <code>import</code> configuration.</p>