pageR is a rapid website development script in PHP for people who dosn't like to work on hardcore frameworks. Our primary goal is to provide a structured format that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility.
- install Apache, MySQL, PHP and eventually PHPMyAdmin: How to setup a LAMP stack on Ubuntu 12.04
- install mod_rewrite and activate it: How to enable mod_rewrite in Ubuntu 12.04 LTS
- remove all files from the /var/www (should only be Apache's index.html and your phpinfo()-containing .php right now) with
rm -r /var/www/*
, otherwise things will get messy and git won't download the repo into a non-empty folder - copy the contents of the extracted pageR repository into /var/www ! In this tutorial we don't use a sub-folder, so your index.php should go into /var/www !
Best way to do is cloning via git:
git clone https://github.com/chinmaygit/pageR.git /var/www
- Run the pageR.sql statements in the via PHPMyAdmin or do it via mysql command-line
- You must enable rewrite_mod.
- Add php file having name of the page link you have to add in 'links' folder. say "about.php".
- This is how links are added in html link href='/about'.
- Add your functions in class file in folder master/Core.php Core class object already initiated.
- Edit Your URL and DB variables in master/conf.php file.
- Sometimes .htaccess file dose not arrive, use following and save it in .htaccess file and pageR folder. RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
Please commit only in development branch. The master branch will always contain the stable version. Use it, And keep me posted if you have any new idea about it. :-D
Auther: Chinmay G. License Under MIT - Open Source License.