Pastebin
Pastebin built using Dojo for UI elements
Install / Use
/learn @weierophinney/PastebinREADME
This is a demo pastebin application, primarily developed to show off new features of the Dojo/Zend Framework integration.
INSTALLATION
This application requires that you either have Zend Framework on your include_path, or that you will be symlinking your Zend Framework library into the library directory. If you do not yet have Zend Framework, you can get it from one of the following sources:
-
Official Release: http://framework.zend.com/dowload/latest
-
Subversion; use either the current trunk or the 1.7 release branch: svn co http://framework.zend.com/svn/framework/standard/trunk/library/Zend
svn co http://framework.zend.com/svn/framework/standard/branches/release-1.7/library/Zend
Install Zend Framework locally, and the follow these steps:
-
Untar the archive using:
tar xzf <packagefile>
-
I recommend creating a symlink to the directory created when extracting from the archive:
ln -s /var/www/pastebin /path/to/<packagedir>
(Assuming /var/www contains directories for your vhosts.)
-
Run the install script The application now comes with an install script, that creates the necessary symlinks, initializes the development database, and sets appropriate permissions. Simply run it using php:
php install.php path/to/ZendFramework/library/Zend
You can get full usage by passing the -h, --help, or -? options:
php install.php -h
-
Create a vhost that points its DocumentRoot to the public subdirectory. As an example:
<VirtualHost *> DocumentRoot /var/www/pastebin/public ServerName paste.local ErrorLog /var/log/apache2/paste.local-error_log CustomLog /var/log/apache2/paste.local-access_log common
</VirtualHost><Directory /var/www/pastebin/public> DirectoryIndex index.php AllowOverride All Order allow,deny Allow from all </Directory>In this particular example, we use the ServerName "paste.local"; you will need to add this to your hosts file:
127.0.1.1 paste.local
-
Finally, simply fire your browser to:
http://paste.local/
FEATURES
This application shows off the following Dojo features:
* BorderContainer
* TabContainer
* ExpandoPane
* AccordionContainer
* dojox.Grid
* dojox.highlight
* dojo.back
* A variety of dijits: ValidationTextBox, SimpleTextarea,
and FilteringSelect
* dojo.xhr
* JSON-RPC
ZF specific features include:
* Zend_Dojo_View_Helper_* (BorderContainer, TabContainer,
ContentPane, etc.)
* Zend_Dojo_Form (form and form elements)
* Zend_Dojo_Data (used to populate the grid)
* Zend_Json_Server (used to process forms and update statusbar
metadata)
CUSTOM DOJO BUILDS
For the adventurous, I have provided a profile for creating a custom Dojo build for the pastebin application. You will need to copy the public/js-src/paste directory and contents to your Dojo source installation, and then use the misc/spindle.profile.js build profile to create the build. Further instructions are in misc/README.txt.
REQUESTS
If you have any feature requests, feel free to send them to:
Matthew Weier O'Phinney <matthew@zend.com>
I may or may not honor them. :)
LICENSE
Please see LICENSE.txt
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
