سؤال

I suspect that data which processed with shopping class Codeigniter is locates in our browser, so we can see and edit our cart with client side script such as javascript. Am i true? if i am wrong, please explain me how its work

best regards

هل كانت مفيدة؟

المحلول

  1. CodeIgniter is a PHP framework
  2. PHP only runs server-side. It CAN NEVER run on the client-side browser.

Putting 1 and 2 together: Your shopping cart does not exist client-side and cannot be modified client-side.

However, you can make an AJAX request from the client to the server, and then modify the shopping cart server-side, and send back the results.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top