Hi, I have not standart situatuation.
I have 4 scenarios… And in this 4 scenarios I need assigned different attributes, BUT I have some attributes which must assign undependent from scenario value.
As I could see it’s impossible now ? or I wrong ?
if($scenario!=='' && isset($attributes[$scenario]))
return $this->ensureArray($attributes[$scenario]);
it’s my safeAttr… function
public function safeAttributes()
{
return array(
' username, userpass, retypePass, email, ..... , website',
'scenario1' => 'anotherAttribute1',
'scenario2' => ....
so as I’m right for my purpose I need change it like this ?
code]
public function safeAttributes()
{
return array(
' username, userpass, retypePass, email, ..... , website',
'scenario1' => 'anotherAttribute1, username, userpass, retypePass, email, ..... , website',
'scenario2' => 'anotherAttribute2, username, userpass, retypePass, email, ..... , website,
....
[/code]