1. Setup and configurationCheck our step by step tutorial if you are setting up a Linux or Unix environment (Mac can get some useful info). For Win systems, let's get everything up and running... Pre-Requisites :Grab a glass, lemons, salt and well for the computer..
We will not get in details as there are so many good tutorials on this subjects for different platforms! Let's get started!Getting Tequila,
You should see 2 folders now:
Create a DB in MySQLUsing phpmyadmin or your favorite mysql tool:
Notice: Tequila can also run without a DB, but most applications can make good use of one Write permissions For now give PHP user permission to write on your project directory. After finishing using the generator you should change this permissions so PHP user can only write on /temp Configure your applicationTequila framework use a configuration file located in yourpath/Project1/includes/config.php, we will:
If you wish to change paths or the application name Database infoEnter your MySql information, (lines 27-31) you will find the database configuration section, replace to match your install:$dbhost= 'localhost'; You can now save and go for testing, or do some other changes..
Framework core files location (optional change)If you didn't move the TequilaCore folder, you don't need to change this lines.For the single Core, on line 52 modify to match the folder you just unzip + \\TequilaCore\\includes\\ $tequilapath = "../TequilaCore/includes/"; For the generator path you can select a path on line 57$sunrise_path = "yourpath/filename";*Don't forget in windows to escape '\' duplicate it \\ and finish with \
Let's give our application a name (optional change)Change line 70 to any name you wish your application to have.$appname = 'appname';* This variable is used in security settings, don't worry about it now. Finish, save this file and test! 2. TestingOk, that was long, let's test:
Hey I get a lot of warnings!,
Now let's start the tutorial! |

