[Owncloud] Owncloud App: Link to settings page

Jörn Friedrich Dreyer jfd at owncloud.com
Tue Aug 6 15:36:21 UTC 2013


On 06.08.2013 00:20, olaf at olafchrist.de 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 (jfd at owncloud.com)
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)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20130806/1509fd0c/attachment.html>


More information about the Owncloud mailing list