A
A
Alexander2015-08-25 16:59:56
Yii
Alexander, 2015-08-25 16:59:56

How to get all posts from a form in yii1?

There is a form where the user enters a name password, etc.
I remember that there is a function that collects all the information from the form. Something like setAttributes.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimon, 2015-08-26
@kentuck1213

Yii->app()->requet->getPost(); 
Yii->app()->requet->getParam();

getAttributes. - this is to pull attributes from the model:
$names = User::model()->getAttributes(array('name'));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question