-
Notifications
You must be signed in to change notification settings - Fork 0
A very simple demonstration plugin for Kohana 3. Designed to demonstrate how Kohana plugins are structured. If you can do anything to make this plugin easier to understand or more standards-compliant, fork away!
License
MasterCJ/Hello-Kohana
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Hello, Kohana! ============== Overview -------- This is a very simple example plugin for Kohana. It does nearly nothing, but shows all the basics of a Kohana plugin. It uses the Kohana config interface to get its configuration options, has all the correct class structures and is commented thoroughly. With this, it should be easy to see how a plugin is structured and may even be a good starting point for a plugin of your own! Installation ------------ 1. `git submodule add git://github.com/MasterCJ/Hello-Kohana.git modules/hello` 2. Enable 'hello' in your bootstrap file 3. Use the Hello class in your project Usage ----- $hello = new Hello(); $text = $hello->say_something(); $hello = new Hello('rude'); $insult = $hello->say_something(); $hello = new Hello(false, array( 'phrases' => array( 'I am custom text!', 'Salutations, programmer!', ), )); $text = $hello->say_something(); u mad? ------ This one is nice and simple by design, so I'm not sure if anyone could have any trouble understanding it. If however you do find yourself scratching your head over any of this plugin, let me know and I'll be happy to call you a duck. You can reach me at [email protected] or through github.
About
A very simple demonstration plugin for Kohana 3. Designed to demonstrate how Kohana plugins are structured. If you can do anything to make this plugin easier to understand or more standards-compliant, fork away!
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published