Qcodo Manual problem - Login Form

thread: 3 messages  |  last: about 3 years ago  |  started: thursday, november 27, 2008, 11:12 am pst


#1  |  Alessandro Pisani (info@pisanialessandro.it) Italy
Thursday, November 27, 2008, 11:12 AM PST

Hi,
I'm a new qcodo user from italy!

I have a problem with “creating a login form” paragraph of the qcodo manual v05.pdf

error:  PHP Fatal error:  Call to undefined method User::loadbyusername()

$objUser = User::LoadByUsername($this->txtUsername->Text);

any ideas?

Thanks

Alessandro

#2  |  Kristof Meirlaen (Belgium) Belgium Qcodo Core Contributor
Saturday, November 29, 2008, 11:08 AM PST

You should put a unique index on the username, and after that codegen again.

I guess it's an error in the manual :)

Kristof

#3  |  Alessandro Pisani (info@pisanialessandro.it) Italy
Sunday, November 30, 2008, 8:10 AM PST

Perfect!

ALTER TABLE  `user` ADD UNIQUE (
`username`
)

Thanks for your advice!

Alessandro



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.