Override EventbookingController Controller

  • Nick
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 months 6 days ago #121160 by Nick
Hello,

I am following documentation here:
eventbookingdoc.joomservices.com/develop...stomization-override

It works well, but I am having trouble with Override for EventbookingController (controller.php). As per documentation I have tried:
class EventbookingControllerOverrideController extends EventbookingController
I also try:
class EventbookingControllerOverride extends EventbookingController

My overridden class is never called. I have a requirement to override validate_email() method in this controller class, so this is why I'm trying to override it. Maybe missing something simple here..

Here is my path:
components/com_eventbooking/controller/override/controller.php

Cheers
Nick

Please Log in or Create an account to join the conversation.

  • Nick
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 months 6 days ago #121161 by Nick
Sorry, user error.
class EventbookingControllerOverrideController extends EventbookingController

Does work fine and hit my breakpoint. This is solved :)

Nick

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
2 months 5 days ago #121175 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Override EventbookingController Controller
Yes, the controller class can be overridden. I'm glad you figured it out

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc