title: backend and frontend setup for Yii
body: <p>Currently I have 2 install setups of Yii for both my backend and frontend. But while working on this it gets abit confusing and I was wondering if this done in the right way. Below is an example how my folder structure is setup.</p>
  
  <pre><code>- backend
    - assets
    - css
    - images
    - js
    - protected
           - components
           - config
                  main.php
  
           - controllers
           - data
           - extensions
           - models
           - modules
           - runtime
           - views
                - layouts
                - site
  
           .htaccess
           yiic
           yiic.php
  
    - themes
    - upload
    index.php
    .htaccess
  
  
  frontend
  
    - assets
    - css
    - images
    - protected
           - commands
           - components
           - config
                  main.php
  
           - controllers
           - data
           - extensions
           - models
           - modules
           - runtime
           - views
                - layouts
                - site
  
           .htaccess
           yiic
           yiic.php
  
    - themes
    index.php
    .htaccess
  </code></pre>
  
  <p>Can anyway tell me of this is a good way. Or is it a stupid way. What is the normal way to do this. I have looked into documentation but it's all uncomplete or not specific. What I want is the most common way to setup a backend and frontend structure for Yii. </p>