vojtasvoboda/SimpleWeb

Simple Web based on Smarty template engine and Nette framework libraries

★ 2Forks 0PHPGitHub ↗Compare

README

SimpleWeb

Simple Web based on Smarty template engine, Nette framework libraries (debugger and autoloader) and Twitter Bootstrap front-end framework.

Requirements

Apache webserver, PHP >= 5.3.0

Features

  • Easy installation and scalability
  • Cool (SEO friendly) URL
  • Support for multi languages website
  • Automaticly display 404 template, when page not found
  • Built-in debugger that logs errors and sends them to your e-mail
  • Class autoloader - no need for require your libraries

Installation

  1. Copy repository to your hosting.
  2. Edit language settings in /app/config/config.php file.
  3. Edit website URL in .htaccess file.
  4. For every page you want, create one PHP file in /app/{lang}/ directory and one TPL file to /app/{lang}/templates/ directory, where {lang} is shortcut for language corresponding to languages setting in config.php.
  • In PHP files do whatever you want. To access variables in templates use: $smarty->assign("variable", $variable);
  • Example of gallery is placed in /app/cz/gallery.php and /app/cz/templates/gallery.tpl

Contributors

vojtasvoboda

Issues