Posts Tagged ‘ PHP ’
My assumption going into this was that creating a tree-like relationship within one of my models would be fairly straightforward with Cake’s model relationships. As it turns out, I was absolutely correct. Let’s say we want to create a model called “Category”, and each category can belong to a parent category. In other words, we [ READ MORE ]
10. get_browser() This function comes in handy when collecting information about a user’s browser to determine the content capabilities for that user. It returns an associative array containing information such as the browser type, version, whether or not it is capable of handling frames, cookies, and javascript, and the platform on which the browser is [ READ MORE ]
After some brief searching, I found a way to create my own custom printf() wrapper functions. The technique is rather simple. Declare a function that accepts a format string and a varying number of further arguments. Pass said string and arguments to fprintf. Do anything else desired before and after[ READ MORE ]