| by bindevmin | No comments

Undestanding PHP Namespaces

I have hard time understanding PHP namespace. So, this post is things I learn from working with it. Namespace keyword starts the file. When you include the class that has namespace defined, you also need to type the keyword use and the namespace you want to use follows. Without using namespace, this would work. However, […]

Read More
| by bindevmin | No comments

[Ultimate] Guide to PHP Autoload

Calling spl_autoload_register without argument spl_autoload_register() without arguments will invoke (call) another function called spl_autoload when php script tries to access an unknown class. The name of the unknown class will be passed to spl_autoload. spl_autoload first then find if there is a file name identical to the class name (lower and upper case, php 7) […]

Read More
| by bindevmin | No comments

Adding new tab to WooCommerce Product Data Panel

Adding new tab to WooCommerce Product Data panel is simple. First, you need to add the tab item. The name of the hook is: So, the add_action would be: And the function wc_custom_tab_head is responsible for outputting the tab’s head HTML Here is an implementation of wc_custom_tab_head Adding content to the tab We have successfully […]

Read More
| by bindevmin | No comments

The Ultimate Guide/Troubleshooting To Install OsTicket On Nginx

OsTicket is an awesome ticketing system. It’s better than Hesk in my opinion. However, the sad thing about this ticketing software is it doesn’t support nginx server officially. However, if you are running Nginx, you can make it work. Nginx configuration for OsTicket How to fix file upload undefined 400 in OSTicket Kudos to this […]

Read More
| by bindevmin | No comments

React Notes

List and keys Don’t use index as key Key must be unique Passing key to the child of the list, not in the render function Form Textarea uses value attribute Select doesn’t use selected attribute but specify the selected value in the value attribute of select opening tag If passing value in as an array […]

Read More