D
D
dro1d2016-03-05 06:50:36
JavaScript
dro1d, 2016-03-05 06:50:36

How to create "add to cart" button in CGrid in Yii 1.16?

I am writing an application in Yii 1.16. I use ShoppingCart as a shopping cart. I have 2 questions:
1. how to add a "put to cart" button in each line of Cgrid.
2. the same button when opening a record.
All with ajax. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2016-03-05
@webinar

1. "I am writing an application in Yii 1.16" - why? Why not use Yii 2.07?
2. Read this: https://habrahabr.ru/post/156251/ There, in addition to everything, there is a guide for creating your own buttons in CGridView
3. "the same button when opening a record." - what's this? What record? What does discovery mean?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question