
Solid
Members-
Content Count
6 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout Solid
-
Rank
Newbie
-
Nah, for now im just trying to post the data manually in a form in the validation-page. Its the update-code thats not working... I dident explain that well enough in the first post, my bad.
-
Hi all. Im trying go abit beyond the chapters of the yii-book, and im struggeling with the update of a database. I cant seem to figure out how i update an existing row. So im trying to build a e-mail verification, a user registers and gets an email with a link to myproject.com/verify?id=ID&verificationcode=VERIFICATIONCODE, and the verifypage picks it up and runs my actionVerify() method: public function actionVerify() { $model=User::model()->findByPk($_POST['id']); $model->attributes=$_POST['Verify']; if($model->validate()) { Yii::app()->u
-
Thx, nice fix. I was struggeling a bit at first, but then i figured out what i did wrong. You have to remember the / in front of register when you add it to the menu, or it will go to /site/register and fail. You can also add: '/'=>'/site/index' and set the home-link to just /. Thank you Simon
-
Add Explanation For Class::Method() Vs Object->Method() ?
Solid replied to olivier's topic in The Yii Book
Agree Ziggi and oliver, thats the hardest thing for me to grasp aswell. Good suggestion. -
Hi all! I've followed the authentication tutorials here, but i wonder if Yii has a workaround for using both cookies and sessions for authentication. I want to allow use of the "remember me" button, but still save the roles, emails and such in sessions for security. Acording to the yii-manual the CBaseUserIdentity::setState will use cookies if its enabled, and use sessions if its set to false. Im thinking about a solution where you save a sha1($username $password) in the cookie, and make a method that gathers the other information in a auto-load-if-logged-in sort of way, but im not
- 1 reply
-
- autenticationcookies
- sessions
-
(and 1 more)
Tagged with:
-
Have you seen this? http://www.larryullm...-yii-framework/ Allso a forum-topic about it here.. http://www.larryullm...in-accessrules/ In short its about assigning roles to the users, and allowing them access trough the roles. If i dident missunderstand your question, that would help you getting use of the accessRules.