I am developing a prototype for a business idea. I am using wordpress for this. I created many widgets that do the functionality with mysql database.
I learn myself how to program ajax and it looks very appealing and want to integrated with my prototype. Saying that, here is my general question. I do want to write the business logic independent of wordpress but still use the wordpress as a platform in the prototype the website and serve initial customers. So I thought develop the php classes and write the code in it and call through ajax to get the data and display on the workpress page.
Is this a good practice ?
How to get my php files to know if the user actually logged in with proper accounts in to wordpress site before process any data at ajax call.
Is there any limit of writing ajax in client side scripting ?