开发者 |
Frederic Vauchelles
Cathy Vauchelles |
---|---|
更新时间 | 2009年9月5日 06:23 |
捐献地址: | 去捐款 |
PHP版本: | 2.8.3 及以上 |
WordPress版本: | 2.8.4 |
All translation files can be found in the lang subdirectory. It contains pot, po and mo files.
I am making some tutorial on my website, so checkout : http://fredpointzero in "Plugin Wordpress" page.
Well, Plugin Factory has short simplified MVC library to render your plugin, so it generates a "views" directory for views and each subdirectory correspond to a "controller". In fact, there is no controller : methods of your plugin can render views and act as controller and action. If you want to render the file located in "views/admin/menu.php", just call the method : render_admin_menu(), without defining it. If you want to make some preprocessing before the rendering, define a function : public function pre_render_(controller)_(action)(){} It will be called before the rendering
Defining Wordpress Options is very simple, you have to define a public attribute in your plugin : $pluginOptions. Do not take time to create an option page, there is already one for you ! Just use the id "options" in the admin menu tree method. To have more details, please checkout http://fredpointzero.com/plugin-factory.
This is very simple : you just have to define a method that will generate the admin menu tree. To have more details, please checkout http://fredpointzero.com/plugin-factory.