Adapting an Actions file to an older version of Phoenix

If it doesn't quite fit in the other areas, put it here...
Post Reply
ArtcoInc
Contributor
Posts: 119
Joined: Fri Oct 25, 2019 4:19 pm
Phoenix Version: v1.0.3.0
Has thanked: 86 times
Been thanked: 17 times

Adapting an Actions file to an older version of Phoenix

Post by ArtcoInc »

(I know this is a longshot, but ...)

I am trying to adapt several new(er) add-ons to an older version of Phoenix.

(I'm not the only one: viewtopic.php?p=23066#p23066 )

Both add-ons use Action files, a format introduced on v1.0.9.0.

My question is, how can I replicate the function of an Action file in an older version of Phoenix? I initially thought to install the add-on into a newer version of Phoenix, examine the generated HTML code, and try to reverse engineer the PHP code needed to generate it. But, I thought I'd ask here if there was an easier way.

(hope springs eternal, right?) :lol:

Thanks!

Malcolm


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Adapting an Actions file to an older version of Phoenix

Post by burt »

Actions are at the top of each file, in a `switch` context, in old versions.
See (eg) admin/countries.php

Edit: might help;
https://phoenixcart.org/forum/viewtopic.php?f=10&t=3371
Philo2005
Member
Posts: 49
Joined: Fri Mar 26, 2021 7:20 am
Phoenix Version: v1.0.8.0
Has thanked: 28 times
Been thanked: 3 times

Re: Adapting an Actions file to an older version of Phoenix

Post by Philo2005 »

I had a look to the github
the 'switch' context has been implemented in 1.0.8.17 in admin/countries.php.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply