简体   繁体   English

Ruby on Rails转换为PHP CodeIgniter

[英]Ruby on Rails to PHP CodeIgniter

I have no experience in Ruby on Rails. 我没有Ruby on Rails的经验。 I employed a developer to create a tour booking system for my site (php codeigniter). 我聘请开发人员为我的网站创建了一个旅游预订系统(php codeigniter)。 He developed it using Ruby on Rails in heroku and then linked to it by iframe in my front end. 他使用heroku中的Ruby on Rails开发了它,然后通过前端的iframe链接到它。

Problem is 问题是

  1. MS explorer doesnt display it, MS Explorer无法显示它,

  2. issues with dynamic booking form sizing, 动态预订表单大小方面的问题,

  3. Cookies for the cart doesnt work as it's cross site and in iOS sometimes the security denies the cookies so system doesnt work, 购物车的Cookie无法使用,因为它是跨站点的,并且在iOS中,有时安全性会拒绝Cookie,因此系统无法正常工作,

  4. Site massively slowed down due to the http requests. 网站由于http请求而大大减慢了速度。

Is there a way to convert the ruby system into php so i can just have it on my local site? 有没有办法将ruby系统转换为php,这样我就可以在我的本地站点上使用它了? Can anyone think of any other solution if not?? 谁能想到其他解决方案吗?

thanks 谢谢

Unfortunately, there is not easy way to convert a language to another, with some exception (like language that compiles to another one, for example CoffeeScript to JavaScript). 不幸的是,没有一种将一种语言转换为另一种语言的简便方法,除了一些例外(例如,将一种语言编译为另一种语言,例如CoffeeScript到JavaScript)。 Using iframes will create security problems, which in turn trigger (modern) browser to block them. 使用iframe会产生安全问题,进而触发(现代)浏览器阻止这些问题。

So, what are your options? 那么,您有什么选择呢?

  • Use the Ruby & Rails website as a subdomain of your main. 将Ruby&Rails网站用作主域名的子域。 Example, if your site runs on chambers.com and that the Ruby on Rails site is about invoicing, it could be on invoncing.chambers.com, and you could use links from one to the other 例如,如果您的网站在chambers.com上运行,并且Ruby on Rails站点是关于发票的,则它可以在invoncing.chambers.com上,并且您可以使用一个到另一个的链接
  • Rewrite either the Ruby or the PHP part, depending on size & team capability 根据规模和团队能力重写Ruby或PHP部分

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM