Some new crazy (Cake)PHP tricks

7

Crazy – because these tips are not used that often probably. But for some rare occasions they might come in handy. Inserting some rows into an array $array = array( ‘one’, ‘two’, ‘three’ ); $newValue = ‘one-point-five’; //with 0 as…

Web Development Snippets

3

A couple of useful snippets for web developing. The list will grow over the years. Jumping to anchors with JS If we want to jump to an anchor dynamically (using javascript): /* dont use this!!! */ //location.href = location.href +…