Skip to content

Commit 1b331bb

Browse files
committed
Merge pull request panique#41 from panique/develop
Develop
2 parents 319eaa8 + 2527fd3 commit 1b331bb

File tree

10 files changed

+16
-9
lines changed

10 files changed

+16
-9
lines changed

.htaccess

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Necessary to prevent problems when using a controller named "index" and having a root index.php
2+
# more here: http://httpd.apache.org/docs/2.2/content-negotiation.html
3+
Options -MultiViews
4+
15
# Activates URL rewriting (like myproject.com/controller/action/1/2/3)
26
RewriteEngine On
37

@@ -13,4 +17,4 @@ RewriteCond %{REQUEST_FILENAME} !-d
1317
RewriteCond %{REQUEST_FILENAME} !-f
1418
RewriteCond %{REQUEST_FILENAME} !-l
1519

16-
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
20+
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
CHANGE LOG
22
==========
33

4+
**January 4th 2014**
5+
- fixed htaccess issue when there's a controller named "index" and a base index.php (which collide)
6+
47
**December 29th 2013**
58
- fixed case-sensitive model file loading (thanks "grrnikos")

application/.htaccess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<Files *.php>
22
Order Deny,Allow
33
Deny from all
4-
</Files>
4+
</Files>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CREATE DATABASE IF NOT EXISTS `php-mvc`;
1+
CREATE DATABASE IF NOT EXISTS `php-mvc`;

application/_install/02-create-table-song.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ CREATE TABLE `php-mvc`.`song` (
55
`link` text COLLATE utf8_unicode_ci,
66
PRIMARY KEY (`id`),
77
UNIQUE KEY `id` (`id`)
8-
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
8+
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

application/_install/03-insert-demo-data-into-table-song.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ INSERT INTO `php-mvc`.`song` (`id`, `artist`, `track`, `link`) VALUES
2828
(27, 'Flight Facilities (ft. Christine Hoberg)', 'Clair De Lune', 'http://www.youtube.com/watch?v=Jcu1AHaTchM'),
2929
(28, 'Karmon', 'Turning Point (Original Mix)', 'https://www.youtube.com/watch?v=-tB-zyLSPEo'),
3030
(29, 'Shuttle Life', 'The Birds', 'http://www.youtube.com/watch?v=-I3m3cWDEtM'),
31-
(30, 'Santé', 'Homegirl (Rampa Mix)', 'http://www.youtube.com/watch?v=fnhMNOWxLYw');
31+
(30, 'Santé', 'Homegirl (Rampa Mix)', 'http://www.youtube.com/watch?v=fnhMNOWxLYw');

application/libs/application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Application
44
{
55
/** @var null The controller */
66
private $url_controller = null;
7-
7+
88
/** @var null The method (of the above controller), often also named "action" */
99
private $url_action = null;
1010

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
"require": {
2020
"php": ">=5.3.0"
2121
}
22-
}
22+
}

public/css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ table {
3030

3131
.bold {
3232
font-weight: bold;
33-
}
33+
}

public/js/application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ $(function() {
77
$('#javascript-header-demo-box').css('color', 'green');
88
$('#javascript-header-demo-box').fadeIn('slow');
99
}
10-
});
10+
});

0 commit comments

Comments
 (0)