Toggen Blog
Tech tips
Articles
Latest
Different output of Set::combine and Hash::combine
Just had an annoying 1/2 hour trying to get a properly formatted array to pass to a select control in CakePHP In my controller I'm trying to format an array with a Custom field $options = array( 'fields' => array( 'ReportDate.id', 'CONCAT( ReportDate.date, "...
CakePHP: Submit 0 instead of NULL for a database column that doesn’t allow NULLs
Problem: Error: SQLSTATE[23000]: Integrity constraint violation: 1048 column 'inventory_status_id' cannot be null Cakephp returns the above error when I'm trying to POST a removal of an integer from a field. Cause: The form was sending a blank value back to the...
Using gnubarcode to generate a GS1-128 barcode
Tried using the Code 128 options but couldn't get the right out put The trick I found is to use Code 128 raw mode. The caveat is it won't format a nice human readable text label for the barcode you will have to add that your self later (perhaps hack the postscript)....
What is the FNC1 character used for in a GS1 compliant barcode?
At work we ship pallets to supermarkets. Each pallet needs two bar codes A Serial Shipper Container Code (SSCC) and An item information bar code with GTIN-14 (Trade unit), Best before date, batch and quantity per pallet. On both the SSCC and item information bar code...
Implementing <<first and last>> links in cakephp pagination
I don't know why they don't include them by default but here is an example of how to add first and last links to your view. <?php echo $this->Paginator->first('<< first'); #add this echo $this->Paginator->prev('< ' . __('previous'), array(),...
Understanding the Difference between Windows Server User and Device Clients Access Licenses (CALs)
Every time I ask myself the question which type of CAL do I require? It always seems to take some thought in order to comprehend the difference.... Especially when you only ask the question every couple of years. But I found this picture which helps visualize the...
