I have an issue with translating ruby to php codes. This is web application. It used php codes (form) to get data. After people clicked Process button. Those data is inputted in ruby code through Post method. It calls main.ruby to process those data. In ruby codes, we had some classes ( different ruby files ) to manipulate data for example like verifying, exporting... data. After that data is render through ruby template (using rhtml and passed through cgi) to display final result in html files.
I am considering to use smarty template in php to translate those ruby code to php code. Can you suggest me some ideas how to deal with classes in ruby to translate it to classes in PHP code ?
and translate ruby templates (rhtml) to php using smarty templates ?