Fixed gitignore
Fix Post before save model

Prevent strict php warning