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.
create new order
customer_id automatically display on textfield form.
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