Yii2: Posting Data via Link

This seems to be undocumented (or not so well documented) at the moment. Yii2 provides special supports which allows you to post data via clicking a link. Note: Line 3: Specifying the method, eg ‘GET’, ‘POST’, ‘PUT’ Line 4: Data to be posted. To get posted data in the action:

HTML5 placeholder attribute for IE9 and prior

One of the many nice features introduced in HTML5 is placeholder attribute for form fields, which is very useful to show helpful hints for the field. This can be done with JavaScript but it’s even better being native to HTML5. That is, until you use browser that doesn’t support HTML5, like IE9 (and before). There are…

Continue Reading »