Calling the widget id of a mult-instance widget from inside the widget?

You can get the instance ID with echo $this->id; ($this is the class instance)

The only time you can’t get this id is from the form() function, right after you just dropped the widget (here‘s the reason why)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)