Linux 软件免费装

Plugin Factory

开发者 Frederic Vauchelles
Cathy Vauchelles
更新时间 2009年9月5日 06:23
捐献地址: 去捐款
PHP版本: 2.8.3 及以上
WordPress版本: 2.8.4

标签

plugin Wordpress factory maker

下载

0.1

详情介绍:

Plugin Factory will generate some files for you. It can generate the basic skeleton of your plugin, with the main class, a proper readme.txt and some other files. It can also generate POT files for your plugins. Finally, the configuration of your plugin generation is stored into a file and can be shared !

安装:

  1. Download the plugin
  2. Copy the directory under your wp-content/plugins
  3. Enable the plugin in your admin pages
That's all !

常见问题:

Where can I find translation files ?

All translation files can be found in the lang subdirectory. It contains pot, po and mo files.

Where can I find a tutorial to use Plugin Factory ?

I am making some tutorial on my website, so checkout : http://fredpointzero in "Plugin Wordpress" page.

Why there is so many file generated for my plugin ?

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

How can I define Wordpress Options to be stored in the database ?

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.

How can I generate my admin pages ?

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.

更新日志:

0.1