Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Próxima revisión
Revisión previa
installation [2015/12/04 02:12]
luchothoma creado
installation [2016/12/30 18:42] (actual)
Línea 1: Línea 1:
 ==== INSTALLATION ==== ==== INSTALLATION ====
-SalemPHP has comprehensive and easy to understand docs that will get you building applications in seconds. 
  
-  *  **__//​Getting Ready//__** 
-    * [[installation|Installation]] ​ 
-    * Friendly URL'​s ​ 
-    * Folders Hierarchy 
- 
-  * **__//The Basics//​__** 
-    * Routes 
-    * Controllers 
-    * Views 
-    * Models 
-    * Helpers 
-    * (Self) Libraries 
  
 **Step 1 - Download** **Step 1 - Download**
-The first step is to download from [[https://​github.com/​luchothoma/​salem]] and upload the files to your server. In the main folder only keep the file index.php, in the application folder, you can delete all the items inside folders(helpers,​orm,​models,​controller,​views) or maybe it(what it has) will be useful as example.+The first step is to download from [[https://​github.com/​luchothoma/​salem]] and upload the files to your server. In the main folder only keep the file index.php ​and .htaccess, in the application folder, you can delete all the items inside folders(helpers,​orm,​models,​controller,​views) or maybe it(what it has) will be useful as example.
  
 **Step 2 - Basic Config** **Step 2 - Basic Config**
Línea 22: Línea 9:
  
 ---- ----
 +<code php | config.php> ​
 // Application'​s Base URL // Application'​s Base URL
 define('​BASE_URL','​http://​dominio.com/'​);​ // or http://​localhost/​yourFolder/ ​ define('​BASE_URL','​http://​dominio.com/'​);​ // or http://​localhost/​yourFolder/ ​
 //​Don'​t forget the trailing slash on the end //​Don'​t forget the trailing slash on the end
  
-/** +//Your Application'​s Default Timezone 
- ​* ​Your Application'​s Default Timezone +//Syntax for your local timezone can be found at 
- Syntax for your local timezone can be found at +//http://​www.php.net/​timezones
- http://​www.php.net/​timezones +
- */+
 date_default_timezone_set('​America/​New_York'​);​ date_default_timezone_set('​America/​New_York'​);​
  
-/Auto Load Libraries ​*/+/Auto Load Libraries
 config::​set('​autoload_library',​array('​url'​));​ config::​set('​autoload_library',​array('​url'​));​
  
-/Auto Load Helpers ​*/+/Auto Load Helpers
 config::​set('​autoload_helper',​array());​ config::​set('​autoload_helper',​array());​
 +</​code>​
 ---- ----
  
Línea 48: Línea 33:
 **Step 3 - Database** **Step 3 - Database**
 If you are going to be using a database in your application,​ you will need to open up application/​config/​db.php and change the driver, host, username, and password information in the db array. For more info on this, see [[dbConfiguration|Database Configuration]]. If you are going to be using a database in your application,​ you will need to open up application/​config/​db.php and change the driver, host, username, and password information in the db array. For more info on this, see [[dbConfiguration|Database Configuration]].
 +----
 +[[documentation|Go back to Documentation]].