Skip to content

obrejla/Nette-NotesPanel

Repository files navigation

NotesPanel, Copyright (c) 2010 Ondřej Brejla <ondrej@brejla.cz>
===============================================================

Introduction
------------

Nette Framework DebugBar panel for adding notes to currently displayed web site.

Requirements
------------

- Nette Framework 1.0-alpha for PHP 5.3
- PHP 5.3.0 or higher
- jQuery 1.4

The default implementation of the model uses:

- SQLite 3.0
- Dibi 1.3-dev

Examples
--------

Using default implementation.

- Don't forget to set the 'notes-panel.sdb' file for writing!

- Then in BasePresenter.

use Nette\Application\Presenter;
use OndrejBrejla\Nette\Addons\NotesPanel\NotesPanel;
/*use Texy;*/

class BasePresenter extends Presenter {

    public function startup() {
		parent::startup();
		$this['notesPanel']->register();
	}

	public function createComponentNotesPanel() {
		$np = new NotesPanel();
		$np->setHttpRequest($this->getHttpRequest());
		// You can set a Texy to interpret the data from the database by Texy!
		// $np->setTexy(new Texy());

		return $np;
	}

}

License
-------

MIT

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

About

Nette Framework DebugBar panel for adding notes to currently displayed web site.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages