Manual Problem - LoadByUsername

thread: 3 messages  |  last: a year ago  |  started: thursday, november 27, 2008, 11:11 am pst


#1  |  Alessandro Pisani (info@pisanialessandro.it) Italy
Thursday, November 27, 2008, 11:11 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  |  Sujith Kumar John G (Chennai,India) India
Sunday, February 21, 2010, 9:49 PM PST

Use the following Query then generate code by qcodo.bat

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

#3  |  kentpachi (France, EU) France
Monday, March 1, 2010, 9:55 AM PST

also you might refer to the wiki as the manual might not be up to date



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