Ever needed to call the same function with different number of parameters? Easy right, just use default values:
But what if you want to make the first parameter optional?
Here’s a simple technique for doing so it in a transparent way.
(more…)
Ever needed to call the same function with different number of parameters? Easy right, just use default values:
But what if you want to make the first parameter optional?
Here’s a simple technique for doing so it in a transparent way.
(more…)
Nette documentation doesn’t provide details about methods execution order in case of a submitted form. So hear hear, it is this:
I’ve had some troubles with a page that refused to be wrapped in a layout. It turned out I accidentally erased {block #content}
in my presenter template. Read on for the background logic explanation.
(more…)