Page 1 of 1

Linker in admin

Posted: Sun Jul 28, 2024 6:23 am
by Pierre_P
In admin i need to update 2 addons, so far so good - almost.

I have 2 addons that uses $GLOBALS['Linker']->build for creating links in admin side
Example:

Code: Select all

= $GLOBALS['Linker']->build($productURL, $productParam . $row->id)
How to update this in the newest version of Phoenix?

Re: Linker in admin

Posted: Sun Jul 28, 2024 6:53 am
by heatherbell
Pierre_P wrote: Sun Jul 28, 2024 6:23 am I have 2 addons that uses $GLOBALS['Linker']->build for creating links in admin side
Links to admin pages use $GLOBALS['Admin']->link
Examples: https://github.com/search?q=repo%3ACE-P ... &type=code

Re: Linker in admin

Posted: Sun Jul 28, 2024 8:43 am
by Pierre_P
heatherbell wrote: Sun Jul 28, 2024 6:53 am
Pierre_P wrote: Sun Jul 28, 2024 6:23 am I have 2 addons that uses $GLOBALS['Linker']->build for creating links in admin side
Links to admin pages use $GLOBALS['Admin']->link
Examples: https://github.com/search?q=repo%3ACE-P ... &type=code
Thanks @heatherbell
I need to use the catalog links appose to $GLOBALS['Admin'] links

Re: Linker in admin

Posted: Sun Jul 28, 2024 9:52 am
by heatherbell
Pierre_P wrote: Sun Jul 28, 2024 8:43 am I need to use the catalog links appose to $GLOBALS['Admin'] links
In that case, try: $GLOBALS['Admin']->catalog