08 2012 档案
摘要:Custom 400 page:In config/settings.yml,all:.actions: error_404_module: error error_404_action: 404Then when a page is not found, it will forward to "<your_domain>/error/404".Custom 500 page:1. Create "error" folder under "config"2. create "error.html.php"
阅读全文
摘要:Most of my web application have some kind of hierarchical structure in their models. It gives my users the ability to categorize their data in a pleasant way. The only problem is that its hard to create a user interface for editing these hierarchies. I made a prototype which adds nested set support
阅读全文
摘要:From:http://css-tricks.com/perfect-full-page-background-image/Image above credited tothis site.This post was originally published on August 21, 2009 and is now being being republished as it has beenentirely revised. Both original methods are removed and now replaced by four new methods.The goal here
阅读全文
摘要:In looking at the "Web Forms : input placeholder" section ofHTML5 Cross Browser Polyfills, one I saw wasjQuery-html5-placeholder.I tried thedemoout with IE9, and it looks like it wraps your<input>with a span and overlays a label with the placeholder text.<label>Text: <spanst
阅读全文
摘要:<?php$order_item = Array ( 0 => Array ( 'order_id' => 1111 ,'item_id' => 1, 'pro_id' => 1, 'pro_name' => 1111 ,'buy_num' => 5), 1 => Array ( 'order_id' => 1111 ,'item_id' => 2 ,'pro_id' => 2 ,'pro_na
阅读全文