helper and auto_increment in DB

Methods in helpers are always available in the views, and can be included in controllers.

Auto_increment for some column like id is global. So when you do transaction and you set id=4, and then it is failed; the next available id will be 5, not 4.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s