jeudi 18 décembre 2014

before-route-action parameter missing

Hi,

i want to use an interceptor to check if user session is still valid, so i use a before-function in SA.

But if i add it, i have not a single parameter which i can add and i have to add the userid atleast to

fire a request.

(ExtJS 5.1.0.107)


SA is showing ExtJS 5.0.x, but i updated the path to ExtJS 5.1.0.107 and upgradewd the project, too.

Even checked its version within the project folder and its the new one.


Nevertheless i still can't add parameters to before-function.

What do i have to do to solve it?


(I add the before-function to go through following steps: ViewController -> route -> before)



Code:



routes: { 'task/:id': {
before: function() { // <-- i need to get the same id which i usually would use for the proper action.


},
caseInsensitive: true,
action: 'task',
conditions: {
':id': '([0-9]+)'
}
},
'tasks': 'tasks'
},task: function(id) { // <- this id-parameter works fine. ...

},

Thank you very much.



before-route-action parameter missing

Aucun commentaire:

Enregistrer un commentaire