문제

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