Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I don't think so. Magento is build on ZF, and migrate to YII is not an easy job (and furthermore, Magento developers should make this big-effort, not others).</p> <p>Anyway, I guess you would ask a different thing: Can Magento be <strong>installed</strong> on Yii framework in order to have <strong>both environments work</strong>? The answer is YES.</p> <p>I did it in this way:</p> <ol> <li><p>Starting from your Yii installation, add a folder called shop (it's just an example, of course you can choose any name you like):</p> <pre><code>mywebsite |-css |-images |-protected |-shop (&lt;- add it at same level of protected folder) |-tests |-theme </code></pre></li> <li><p>Install Magento source in such folder and now change your Yii index.php file in this way:</p> <pre><code>&lt;?php function recursive_str_replace($replacethis,$withthis,$inthis) { $inthis = str_replace($replacethis, $withthis, $inthis); if (stristr($inthis, $replacethis) !== FALSE) return recursive_str_replace($replacethis, $withthis, $inthis); return $inthis; } $request_uri = strtolower(recursive_str_replace('//', '/', $_SERVER['REQUEST_URI'])); //if we don't need to load Magento, then load Yii framework! //otherwise let Magento autoloader do its job if (strpos($request_uri, '/shop/') === false){ //run your Yii app as usual // change the following paths if necessary $yii=dirname(__FILE__).'/../../framework/yii.php'; $config=dirname(__FILE__).'/protected/config/main.php'; // remove the following line when in production mode defined('YII_DEBUG') or define('YII_DEBUG',true); require_once($yii); Yii::createWebApplication($config)-&gt;run(); } </code></pre></li> <li><p>Last step: tell Magento the new <code>base_url</code> value, either via Admin Panel or <code>core_config_data</code> table.</p></li> </ol> <p>That's all</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload