Skip to content

Commit 1f0a3c3

Browse files
committed
initial commit
0 parents  commit 1f0a3c3

File tree

232 files changed

+79560
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

232 files changed

+79560
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.settings/
2+
.buidpath
3+
.project

.htaccess

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
AddDefaultCharset UTF-8
2+
<IfModule mod_rewrite.c>
3+
RewriteEngine On
4+
5+
# my url is http://localhost/arny
6+
#RewriteBase /arny/
7+
# set your own
8+
RewriteBase /
9+
10+
#Removes access to the system folder by users.
11+
#Additionally this will allow you to create a System.php controller,
12+
#previously this would not have been possible.
13+
#'system' can be replaced if you have renamed your system folder.
14+
RewriteCond %{REQUEST_URI} ^system.*
15+
RewriteRule ^(.*)$ /index.php?/$1 [L]
16+
17+
#When your application folder isn't in the system folder
18+
#This snippet prevents user access to the application folder
19+
#Submitted by: Fabdrol
20+
#Rename 'application' to your applications folder name.
21+
RewriteCond %{REQUEST_URI} ^application.*
22+
RewriteRule ^(.*)$ /index.php?/$1 [L]
23+
24+
#Checks to see if the user is attempting to access a valid file,
25+
#such as an image or css document, if this isn't true it sends the
26+
#request to index.php
27+
RewriteCond %{REQUEST_FILENAME} !-f
28+
RewriteCond %{REQUEST_FILENAME} !-d
29+
RewriteRule ^(.*)$ index.php?/$1 [L]
30+
</IfModule>

README.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
### A CodeIgniter skeleton application based on twitter bootstrap and html5boilerplate.
2+
---------------------------------------------------
3+
4+
VERSION 1.1.2
5+
6+
* Codeigniter 2.1.3
7+
* bootstrap 2.2.1
8+
* html5boilerplate 4.0.0
9+
* unique style css contains all bootstrap css (responsive and basic), and global css for custom styles.
10+
* unique plugin js contains all bootstrap plugins.
11+
* view rendering handled by a smart MY_Controller.
12+
* jQuery 1.8.2
13+
* underscore.js 1.3.3
14+
* nav_helper
15+
* .htacces tip for remove index.php
16+
* basejs view always include in page. (usefull to access via js some server side information e.g. base_url())
17+
18+
USAGE
19+
-------------------
20+
1. edit .htaccess file in order to match your server config (see line 5 in the file);
21+
if you have http://localhost/site you nedd to set RewriteBase /site/
22+
2. set up yor defaults values in application/config/development/custom.php
23+
3. take a look to home controller and template view files to understand how does rendering works.
24+
4. create your template: i've set up an header, footer, nav, and main for example purpose. Skeleton.php contains the scaffolding page.
25+
5. pass your data to the view using in controller $this->data["my_var"] = "value";
26+
27+
My_Controller
28+
-------------------
29+
is made for my basic page template.
30+
You need to customize it in order to match your needs.
31+
Feel free to improve it.
32+
Send a pull request, or contact me.
33+
34+
Author
35+
-------------------
36+
37+
####Alessandro Arnodo
38+
39+
+ [@vesparny](https://twitter.com/vesparny)
40+
41+
+ [http://arnodo.net](http://arnodo.net)
42+
43+

application/.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Deny from all

application/cache/.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deny from all

application/cache/index.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<html>
2+
<head>
3+
<title>403 Forbidden</title>
4+
</head>
5+
<body>
6+
7+
<p>Directory access is forbidden.</p>
8+
9+
</body>
10+
</html>

application/config/autoload.php

+116
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2+
/*
3+
| -------------------------------------------------------------------
4+
| AUTO-LOADER
5+
| -------------------------------------------------------------------
6+
| This file specifies which systems should be loaded by default.
7+
|
8+
| In order to keep the framework as light-weight as possible only the
9+
| absolute minimal resources are loaded by default. For example,
10+
| the database is not connected to automatically since no assumption
11+
| is made regarding whether you intend to use it. This file lets
12+
| you globally define which systems you would like loaded with every
13+
| request.
14+
|
15+
| -------------------------------------------------------------------
16+
| Instructions
17+
| -------------------------------------------------------------------
18+
|
19+
| These are the things you can load automatically:
20+
|
21+
| 1. Packages
22+
| 2. Libraries
23+
| 3. Helper files
24+
| 4. Custom config files
25+
| 5. Language files
26+
| 6. Models
27+
|
28+
*/
29+
30+
/*
31+
| -------------------------------------------------------------------
32+
| Auto-load Packges
33+
| -------------------------------------------------------------------
34+
| Prototype:
35+
|
36+
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
37+
|
38+
*/
39+
40+
$autoload['packages'] = array();
41+
42+
43+
/*
44+
| -------------------------------------------------------------------
45+
| Auto-load Libraries
46+
| -------------------------------------------------------------------
47+
| These are the classes located in the system/libraries folder
48+
| or in your application/libraries folder.
49+
|
50+
| Prototype:
51+
|
52+
| $autoload['libraries'] = array('database', 'session', 'xmlrpc');
53+
*/
54+
55+
$autoload['libraries'] = array('database', 'session');
56+
57+
58+
/*
59+
| -------------------------------------------------------------------
60+
| Auto-load Helper Files
61+
| -------------------------------------------------------------------
62+
| Prototype:
63+
|
64+
| $autoload['helper'] = array('url', 'file');
65+
*/
66+
67+
$autoload['helper'] = array('url');
68+
69+
70+
/*
71+
| -------------------------------------------------------------------
72+
| Auto-load Config files
73+
| -------------------------------------------------------------------
74+
| Prototype:
75+
|
76+
| $autoload['config'] = array('config1', 'config2');
77+
|
78+
| NOTE: This item is intended for use ONLY if you have created custom
79+
| config files. Otherwise, leave it blank.
80+
|
81+
*/
82+
83+
$autoload['config'] = array("custom");
84+
85+
86+
/*
87+
| -------------------------------------------------------------------
88+
| Auto-load Language files
89+
| -------------------------------------------------------------------
90+
| Prototype:
91+
|
92+
| $autoload['language'] = array('lang1', 'lang2');
93+
|
94+
| NOTE: Do not include the "_lang" part of your file. For example
95+
| "codeigniter_lang.php" would be referenced as array('codeigniter');
96+
|
97+
*/
98+
99+
$autoload['language'] = array();
100+
101+
102+
/*
103+
| -------------------------------------------------------------------
104+
| Auto-load Models
105+
| -------------------------------------------------------------------
106+
| Prototype:
107+
|
108+
| $autoload['model'] = array('model1', 'model2');
109+
|
110+
*/
111+
112+
$autoload['model'] = array();
113+
114+
115+
/* End of file autoload.php */
116+
/* Location: ./application/config/autoload.php */

0 commit comments

Comments
 (0)