Hook of the Timesheets module

  • Last Created On Jun 25, 2024
  • 740
0 0

1. Find"application/views/admin/includes/header.php”

- This hook to show the Check-in/Checkout Icon on the Header menu when using a Mobile device

- Line 93 add new Code like the picture

Code: 

<?php hooks()->do_action('admin_navbar_start'); ?>

- Line 114 add new code

Code: 

<?php hooks()->do_action('admin_navbar_end'); ?>

- Image: 


2. Update date config for call API

- Find “application/config/config.php”

- Line 488 update code like below

- Code 

$config['csrf_exclude_uris'] = ['forms/wtl/[0-9a-z]+', 'forms/ticket', 'forms/quote/[0-9a-z]+', 'admin/tasks/timer_tracking', 'api\/.+', 'timesheets/api\/.+'];

- Image


3. Change file Session_driver.php

Find file “system/libraries/Session/Session_driver.php”

if your server uses PHP8.1 or later, you need to change below (because this function is not compatible with PHP 8.1 and above)

Change NULL to ‘’ ( like the image)

After Changed


Before Change


Views: 740

Recent Articles

  • Auto-Fulfillment & Omnichannel Order-to-...
    12
  • SDR AI Agent - Guide 5: Governance Setti...
    13
  • SDR AI Agent - Guide 4: Activity Audit,...
    15
  • SDR AI Agent - Guide 3: Autonomous Lead...
    16
  • SDR AI Agent - Guide 2: Real-Time Kanban...
    14

Popular Articles

  • Connect your X (Twitter) account and Syn...
    3409
  • Warehouse
    2794
  • Item Settings
    2368
  • X (Twitter) Analytics
    2219
  • Plaid environment & Setup Your Bank Acco...
    2118