Jump to content

Mix TPL & PHP modules?


Recommended Posts

  • Moderators

Follow the steps below:

1) Open the core/common/FrontSchedulesData.class.php and where "public function" replace with "public static function".

2) Open the core/modules/FrontSchedules/FrontSchedules.php and where ".tpl" replace with ".php".

3) Open the core/templates directory and change the name of the "airport_search.tpl" file to "airport_search.php".

They should work correctly afterwards.

Link to post
Share on other sites
10 hours ago, servetas said:

Follow the steps below:

1) Open the core/common/FrontSchedulesData.class.php and where "public function" replace with "public static function".

2) Open the core/modules/FrontSchedules/FrontSchedules.php and where ".tpl" replace with ".php".

3) Open the core/templates directory and change the name of the "airport_search.tpl" file to "airport_search.php".

They should work correctly afterwards.

Done all that, but no routes show after the search!

Link to post
Share on other sites
1 hour ago, servetas said:

Are you using a different table prefix for your database tables? The module is set to query the phpvms_schedules database table. Does it exist?

No. And Yes. The normal search works just fine.

Link to post
Share on other sites
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...