Hi List,

I am creating an app using the App Framework. I used the
owncloud_scaffolding script to create the initial application files.

I need to add a parameter to a route. The OC5 developer documentation
indicates that I should change appinfo/routes.php to something like
this :-

$this->create('appname_index', '/{key}')->action(
        function($params){
                App::main('PageController', 'index', $params, new 
DIContainer());
        }
);

then the value of 'key' should be available in $params.

Whenever I add the '{key}' to the route, all I get is the error :-

The "appname_index" route has some missing mandatory parameters ("key").

So there is clearly something else I need to do, but I cannot figure out
what this would be. I've checked the docs and looked at other apps but
cannot figure what I'm missing.

Can anyone help?

TIA,

Jack

_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud

Reply via email to