# Move from PHP to Rails

**URL:** <https://www.ruby-forum.com/t/move-from-php-to-rails/150957>\
**Category:** Rails\
**Created:** [October 15, 2008, 8:50am UTC](https://www.ruby-forum.com/t/move-from-php-to-rails/150957 "2008-10-15T08:50:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 15, 2008, 8:50am UTC](https://www.ruby-forum.com/t/move-from-php-to-rails/150957/1 "2008-10-15T08:50:29Z")

</div>

Hi,

Recently I designed a web application where I used the technologies  
ExtJS and PHP. I didnt use any framework for PHP, I started with small  
framework for DB. Now I want to move that application from PHP to  
Rails and I want to continue with the same ExtJS. So I dont want to  
change any of the javascript files for the UI. Anybody knows about how  
I can do this migration simply.

Thanks,  
Ramu.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 15, 2008, 10:36am UTC](https://www.ruby-forum.com/t/move-from-php-to-rails/150957/2 "2008-10-15T10:36:08Z")

</div>

On Oct 15, 2:49 pm, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Ramu.  
> You’re going to be needing the Prototype/Scriptaculous adapter, so if  
> you built your own custom ExtJS, you’re going to have to rebuild it  
> with the adapter in place.

Going to the UI code, how do you populate your forms? Are they loaded  
inline, or fetched via AJAX calls?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 16, 2008, 9:44am UTC](https://www.ruby-forum.com/t/move-from-php-to-rails/150957/3 "2008-10-16T09:44:47Z")

</div>

On 15 Oct 2008, at 10:35, Erol F. wrote:

> > Thanks,  
> > Ramu.
> 
> You’re going to be needing the Prototype/Scriptaculous adapter, so if  
> you built your own custom ExtJS, you’re going to have to rebuild it  
> with the adapter in place.

I don’t see why to be honest. Nowhere in Rails have I seen a  
dependency on Prototype/Scriptaculous and I know for one that quite a  
few people are using other libraries (e.g. JQuery) instead. If you  
want to use the Rails AJAX helpers, something I wouldn’t do if you  
have already made a whole ExtJS application anyway (since you clearly  
know your way around Javascript).

Best regards

Peter De Berdt
