I used the below code to try to get the current user ID in prestashop.. am placing this code in another php file in my module directory and call it through by the module file.
$id = $this->context->customer->id_customer;
but its not working for me.. am using prestashop 1.5 ..