Project: tkbase
Web: http://www.tropotek.com/
Authors: Michael Mifsud http://www.tropotek.com/
A base site using the Tk framework, use this as a starting point for your own site.
- First setup a database for the site and keep the login details handy.
- Make sure you have the latest version of composer [https://getcomposer.org/download/] installed.
- Use the following commands:
# git clone https://github.com/tropotek/tkbase.git
# cd tkbase
# composer install
- Edit the
/src/App/config/config.php
file to your required settings. - You may have to change the permissions of the
/data/
folder so apache can read and write to it. - To enable debug mode and logging edit the
/src/config/config.php
file to suit your server. tail the log for more info on any errors.
# git reset --hard
# git checkout master
# git pull
# composer update
Warning: This could potentially break the site. Be sure to backup any DB and site files before running these commands
In the folder /html
you will find all the content templates for the site.
When editing a path to a file there are 3 types of paths, use the first one to access theme files and use the other two to access files outside of the theme. For example if we where editing the public.html template:
- Theme Relative:
./css/somefile.css
would be translated intohttp://domain.com/html/public/css/somefile.css
- Full Path 1:
css/somefile.css
would be translated intohttp://domain.com/css/somefile.css
- Full Path 2:
/css/somefile.css
would be translated intohttp://domain.com/css/somefile.css