Primary Key automatically displayed on textfield when creating new Order Details

Hello there! I am creating a new order and I want to get the customer_id from the previous view page. So that it would be easier for the user. It’s like getting data from the previous page.

  1. view customer

  2. create new order

  3. customer_id automatically display on textfield form.

Thanks :)

You can use session to store the data of the customer if you do not want to store customer information from database else

You should automatically login customer after creating new account and then use Yii::app()->user to fetch the values related to current logged user.

Choose your way… enjoy

thanks i’ll try to learn how to use sessions in yii :)