是否可以将magento购物车网站迁移到Yii框架中?
我有一个问题,基于zend框架的magento商店购物车网站是否可以迁移到新的Yii框架网站而不是使用zend?是否可以将magento购物车网站迁移到Yii框架中?,magento,zend-framework,yii,frameworks,migration,Magento,Zend Framework,Yii,Frameworks,Migration,我有一个问题,基于zend框架的magento商店购物车网站是否可以迁移到新的Yii框架网站而不是使用zend? 谢谢。我不这么认为。Magento是基于ZF构建的,迁移到YII并不是一件容易的工作(而且,Magento开发人员应该付出巨大的努力,而不是其他人) 无论如何,我想你会问另一件事:Magento是否可以安装在Yii框架上,以便两种环境都能工作? 答案是肯定的 我是这样做的: <?php function recursive_str_replace($replacethis,$
谢谢。我不这么认为。Magento是基于ZF构建的,迁移到YII并不是一件容易的工作(而且,Magento开发人员应该付出巨大的努力,而不是其他人) 无论如何,我想你会问另一件事:Magento是否可以安装在Yii框架上,以便两种环境都能工作? 答案是肯定的 我是这样做的:
<?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)->run();
}
mywebsite
|-css
|-图像
|-保护
|-商店(我不这么认为。Magento是基于ZF构建的,迁移到YII不是一件容易的工作(而且,Magento开发人员应该付出巨大的努力,而不是其他人)
无论如何,我想你会问另一件事:Magento是否可以安装在Yii框架上,以便两种环境都能工作?
答案是肯定的
我是这样做的:
<?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)->run();
}
从您的Yii安装开始,添加一个名为shop的文件夹(这只是一个示例,当然您可以选择任何您喜欢的名称):
mywebsite
|-css
|-图像
|-保护
|-商店(我不这么认为。Magento是基于ZF构建的,迁移到YII不是一件容易的工作(而且,Magento开发人员应该付出巨大的努力,而不是其他人)
无论如何,我想你会问另一件事:Magento是否可以安装在Yii框架上,以便两种环境都能工作?
答案是肯定的
我是这样做的:
<?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)->run();
}
从您的Yii安装开始,添加一个名为shop的文件夹(这只是一个示例,当然您可以选择任何您喜欢的名称):
mywebsite
|-css
|-图像
|-保护
|-商店(我不这么认为。Magento是基于ZF构建的,迁移到YII不是一件容易的工作(而且,Magento开发人员应该付出巨大的努力,而不是其他人)
无论如何,我想你会问另一件事:Magento是否可以安装在Yii框架上,以便两种环境都能工作?
答案是肯定的
我是这样做的:
<?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)->run();
}
从您的Yii安装开始,添加一个名为shop的文件夹(这只是一个示例,当然您可以选择任何您喜欢的名称):
mywebsite
|-css
|-图像
|-保护
|-商店(我的回答是否回应了你的问题?如果是,请接受并标记为有效。其他人会发现你的问题和我的回答都很有用。谢谢。我的回答是否回应了你的问题?如果是,请接受并标记为有效。其他人会发现你的问题和我的回答都很有用。谢谢。我的回答是否回应了你的问题?我如果是,请接受它并标记为有效。其他人会发现你的问题和我的答案都很有用。谢谢。我的答案对你的问题有回应吗?如果是,请接受它并标记为有效。其他人会发现你的问题和我的答案都很有用。谢谢。谢谢你提供的信息!如果我想要magento r,我最终会这样做吗Un+C++框架,或者唯一可能的方法是使用下面的快速性能和CPU资源。因为我讨厌ZEngamework,我想把EAER转换成java或net,C++平台。我知道脸谱网将PHP代码翻译成C++,所以我的问题是,你会建议我从下面的工具中成功地进行项目迁移吗?脸谱网工具:或者微软工具:谢谢你的信息!如果我想让MaGeNTO在C++框架上运行,我最终会做同样的事情,或者唯一可能的方法是使用下面的C++来实现快速性能和CPU资源,因为我讨厌ZEngamework,我想把EAE转换成java或net,C++平台。代码进入C++,我的问题是,对于下面的工具,脸谱网工具,还是微软工具,我想对我的项目进行迁移,你会建议我吗?谢谢你的信息!如果我想让MaGeNTO在C++框架上运行,我最终会做同样的事情吗?或者唯一的方法是使用下面的快速性能和CPU R。因为我讨厌ZeDrand,我想把EAER转换成java或net,C++平台。我知道脸谱网把PHP代码翻译成C++,所以我的问题是,你会建议我从下面的工具,脸谱网工具,或者微软工具中成功地进行项目迁移:谢谢你的信息!我最终能做同样的事情吗?我想让MaGeNTO在C++框架上运行,或者唯一的方法是使用下面的快速性能和CPU资源。因为我讨厌ZEngamework,我想把EAER转换成java或net,C++平台。我知道脸谱网将PHP代码翻译成C++,所以我的问题是,对于T的成功项目迁移,你会建议我怎么做?他在以下工具、问候、Facebook工具或Microsoft工具: