Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maht0rz/rpdev
Rapid Development class of Vibius PHP Framework
https://github.com/maht0rz/rpdev
Last synced: 3 months ago
JSON representation
Rapid Development class of Vibius PHP Framework
- Host: GitHub
- URL: https://github.com/maht0rz/rpdev
- Owner: maht0rz
- Created: 2014-06-26T10:58:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-27T06:49:44.000Z (over 10 years ago)
- Last Synced: 2024-10-08T10:24:12.854Z (3 months ago)
- Language: PHP
- Size: 3.29 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Rapid Development Class
======
Speeds up web development, and generates backend dashboard with updatable content.How to use rpdev class?
* Create folder ``app/storage``
* Copy folder views/rpdev to app/views/ (app/views/rpdev)* Copy folder rpdev to public/ (public/rpdev)
* Copy rpdev.php into ``plugins`` directory
* Create instance of rpdev class in routes.php:
``$rpdev = new vibius\plugins\rpdev();``
* Set login credentials for backend:
``$rpdev->setLoginCredentials(array('admin' => 'letmein'));``
Admin panel is available at route ``admin/login``
* Initialize generation process
``$rpdev->init();``
* Register error view
``$rpdev->registerErrorHandler('rpdev/error');``
* Register your pages:
``$rpdev->register('/','rpdev/homepage',array('title','content','footer'));``
You can copy in routes.php file with pre-registred homepage.
Pattern:
``$rpdev->register(route,view,editable content);``
* Creating templates
Variables available in views:
``$baseUrl`` -> base path of your appplicaion, used to create links
``$uriKey`` -> used with assetsbootstraper
Have a look at ``views/rpdev/homepage`` view to see, what templating rules are utilized to generate templates & layouts