/Codeigniter-Smarty

Codeigniter + Smarty integration

Primary LanguagePHP

Codeigniter-Smarty

Codeigniter + Smarty integration

Versions:

Codeigniter 2.1.4
Smarty 3.1.16

Pre-configured:

- Smarty templating engine - Demonstration templates to give an idea how it works - Default DB driver MySQLi - global_xss_filtering = TRUE - Moved CodeIgniter outside the webroot - Using a .htaccess to remove index.php from the URL

Installation and configuration

- Place all the files in the site's directory.
- Make sure you upload the files one folder above the public_html (or www, depending on your server)
- Change the config files to suit your needs

Encryption key

Make sure you change the encryption key inside application/config/config.php
Look for: $config['encryption_key'] = 'ENTERYOUROWNKEYHERE';
And replace ENTERYOUROWNKEYHERE with a unique key.

CodeIgniter inside the webroot (public_html/www)

If you do not like CodeIgniter being outside the webroot it can be changed quite easily. All you have to do is: - move the files inside the public_html to the folder above them (where the application and system folders are) - open index.php - change the system path to: $system_path = 'system'; - change the application folder to: $application_folder = 'application'; - delete the (now empty) public_html folder - upload the files to your your server and enjoy!

Changelog

11-03-2014 - updated smarty to 3.1.16 - refactored custom smarty code - updated the readme (from now on I will ignore this change because it will happen every time...)

Note: In this release the cache directory will change. So make sure to delete your old one, it's not needed anymore.

23-07-2013

  • changed template extension to ".tpl"
  • modified the demonstration templates to a structure users will probably use more often
  • updated codeigniter to 2.1.4
  • changed DBDriver to MySQLi
  • updated the readme

14-02-2013

  • initial commit