restaurant site Admins login error

Discuss everything related to ApPHP Restaurant Site script.

Moderators: alexandrleonenko, alexmst

paragate
Master
Master
Posts: 151
Joined: Nov 13th, '14, 13:04
Location: Denmark, Odense

restaurant site Admins login error

Postby paragate » Jun 8th, '17, 06:54

hi
Maybe other have problem with static/dynamic language method.
try change line 176 in protected/model/Admins.php to

Code: Select all

                  $session->set('loggedLanguage', ($admin->language_code ? $admin->language_code : Languages::model()->getDefaultLanguage()));


when site loaded to web there is an error a static call to dynamic...
regards

administrator
Site Admin
Site Admin
Posts: 6057
Joined: Jan 7th, '09, 23:18
Contact:

Re: restaurant site Admins login error

Postby administrator » Jun 9th, '17, 07:54

What call exactly?
This: $session->set
or
this:
Languages::model()


Return to “ApPHP Restaurant Site {developers/users}”