On 06.08.2013 00:20, [email protected] wrote:
> Hi everybody,
>
> I am helping writing an owncloud app. Is it possible to link to the
> user's personal settings page?
>
> link_to('index.php', 'settings/personal')
>
> works but seems kind of wrong to me (linking should only be done
> inside apps).
>
> Please see the relevant commit for more information:
> https://github.com/olafc/owncloud/commit/1cee8e73130b8f7d315279270081b61a8e9aeabb#commitcomment-3792827
>
Try using routes: \OCP\Util::linkToRoute('settings_personal'), see
https://github.com/owncloud/core/blob/master/settings/routes.php#L12

so long

Jörn

-- 
Jörn Friedrich Dreyer ([email protected])
Senior Software Engineer
ownCloud GmbH

Your Data, Your Cloud, Your Way!

ownCloud GmbH, GF: Markus Rex, Holger Dyroff
Schloßäckerstrasse 26a, 90443 Nürnberg, HRB 28050 (AG Nürnberg)

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

Reply via email to