I'm working on a plugin to do subscription billing with paypal. I have the following controller
class PaypalSubscription_SubscriptionController extends BaseController {
public function actionSubscriptions() {
// This renders a form that collects some info on subscription options
}
public function actionSubscribe() {
$this->requirePostRequest();
// This takes data and starts a paypal transaction
}
}
I can get to the form by going to /actions/paypalSubscription/subscription/subscriptions
I've tried hard coding the url /actions/paypalSubscription/subscription/subscribe
as well as using actionUrl('/paypalSubscription/subscription/subscribe')
. The actionUrl
call prepends index.php/actions
to the string which is just incorrect, and either way both approaches 404. What am I missing here?
I know that i'm logged in and that works correctly since I can reach the original form and anonymous access shouldn't be turned on, so I don't believe that's the issue.