Forum eportal / edycja

Temat: Active Record Problem Call to a member function save() on a non-object
...it's an update action not an insert. lets say we had a table called users: with username, password, email I make a new instance of User and I set via a form the username and password and email attributes - then save. This will insert into the users table. But lets say I make a new instance of User and I search for username="my name" The result (if found) will auto set password="my password" and email="my email" Then lets say I change email to email="my new email" This time around save identifies it's an update. Hope that clears it up for you :)
Źródło: yiiframework.com/forum/index.php?showtopic=3883



Temat: Registration Forms little tips
...return true; } /** * @return actions to perform before saving ie: hash password */ public function beforeSave() { // hash password for database. $pass = md5(md5($this->password).Yii::app()->params["salt"]); $this->password = $pass; return true; } /** * @return actions to perform after saving ie: Send email with account info */ public function afterSave() { /* * This is the Password Change Email setup */ $subject = "Password Change - SterlingSavvy.com"; $message = ' <html> <head> <title>SterlingSavvy Password Change</title> <style> body { color: #8BB3DA; } </style> </head> <body style="background-color: #161616;"> <div style="margin-left: 10%; margin-top: 5%; background-color: #191919; color: #8BB3DA;...
Źródło: yiiframework.com/forum/index.php?showtopic=3133


Temat: MinevraSEO - fURL
...'act=usercp&CODE=ignore', '' ); $usercp_email_settings_rule = array( 'email-settings.html', 'email-settings.html', 'act=usercp&CODE=02', '' ); $usercp_board_settings_rule = array( 'board-settings.html', 'board-settings.html', 'act=usercp&CODE=04', '' ); $usercp_change_email_rule = array( ' change-email-address.html', '
Źródło: forum.invisionize.pl/index.php?showtopic=4647


  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • remcia98.keep.pl