developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Custom Query (1324 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (25 - 27 of 1324)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Ticket Resolution Summary Owner Reporter
#480 fixed Add a default template in a new application bastnic laurentj
Description

To display something after creating a new application and so to see if all is alright, the default controller should display something, a welcome message for example.

#427 fixed Add a formdatas plugin laurentj
Description

The use of the form plugin is not really consistant when we want to display only label and values (so to display the content of a form), since the form plugin add javascript scripts, add a form tag etc.

The formdatas plugin should only prepare some private variables needed by fomrcontrols, ctrl_label and ctrl_value.

#759 duplicate Add a jAuth::reloadUser() method mike
Description

If we don't use the updateUser($user) method because it's easier to use the $form->saveToDao($dao) in some cases (like if you have a lot of fields). For example :

 $user->data1 = $form->getData('data1');
 $user->data2 = $form->getData('data2');
 $user->datax = $form->getData('datax');
 jAuth::updateUser($user);

It would be easier if we can use :

 $form->saveToDao('module~member');
 jAuth::reloadUser();

Create this method is one way to solve the problem but we can do also a method which would save the user directly from the form like that:

  $form->saveUser('module~member');

I think the first solution is better, what do you think of that ?

The patch for the first solution could be something like this:

    public static function reloadUser() {
        $dr = self::_getDriver();
        $config = self::_getConfig();
        $_SESSION[$config['session_name']] = jAuth::getUser($_SESSION[$config['session_name']]->login);
    }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Note: See TracQuery for help on using queries.