You can not execute PHP code in Mojito applications. However, you could use your PHP code to provide an API/web service. Then in your Mojito controller or model you can call this API using YUI's IO capabilities: http://yuilibrary.com/yui/docs/io/
i m really glad to receive such a gr8 help from you... yesterday i just came to know that we cant use PHP code in mojito app.. also wanted to ask you one thing that can is there any way in mojito to connect with mysql DB and get DATA from database without using PHP code in my app.....
I saw the video demonstration of mojito, the developer demos an app that can adopt to server/client/mobile environment and I am kind of lost with how the client/mobile adoption will work if you have a model that directly connects to a server database?
Your files have an affinity, for example controller.server.js has the affinity "server". This means that this file can and will only execute on the server. Now if you have a MySQL DB that can only be accessed from your server, you can only do so in files with a server affinity. If you want files with a common affinity, means that they can run anywhere, then you have to find another way, probably an HTTP key-value store that can be accessed "from the internet", that could be used to store your data.