Skip to content

Commit

Permalink
Merge branch 'new-template' into origin/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Amin Wijaya committed Aug 10, 2017
2 parents 354c380 + fc3ad49 commit b993e46
Show file tree
Hide file tree
Showing 2,660 changed files with 629,558 additions and 89,098 deletions.
66 changes: 63 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,67 @@
# https://git-scm.com/docs/gitignore
# https://help.github.com/articles/ignoring-files
# Example .gitignore files: https://github.com/github/gitignore
/bower_components/
/node_modules/
/composer.phar
/.idea/

# Created by https://www.gitignore.io/api/phpstorm

### PhpStorm ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff:
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries

# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.xml
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml

# Gradle:
.idea/**/gradle.xml
.idea/**/libraries

# Mongo Explorer plugin:
.idea/**/mongoSettings.xml

## File-based project format:
*.iws

## Plugin-specific files:

# IntelliJ
/out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

### PhpStorm Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721

# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr

# Sonarlint plugin
.idea/sonarlint

# End of https://www.gitignore.io/api/phpstorm
4 changes: 4 additions & 0 deletions .idea/blade.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/codeStyleSettings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/cssxfire.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/markdown-navigator/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 34 additions & 2 deletions .idea/tar.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,35 @@
# TAR
E-PROC Ryan

## note
- table history
- index perubahan

index | about
----- | -----
i_tender | tambah berita tender
u_tender | update berita tender
a_tender | approval berita tender
i_rks | upload rks
u_rks | ganti rks
a_rks | approval berita tender
i_acara | upload berita acara
u_acara | ganti berita acara
i_unit | tambah unit kerja
d_unit | hapus unit kerja
i_boq | tambah boq
u_boq | ubah boq
d_boq | hapus boq
a_boq | approval boq
i_dok | tambah dokumen
u_dok | ubah dokumen
d_dok | hapus dokumen
a_dok | approval dokumen

## bug
- BOQ,

## improvement
- automaticaly approval newly added tender, rks, and doc from manajer and/or direktur


52 changes: 52 additions & 0 deletions app/container.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?php

//$container['db'] = function ($c) {
// $settings = $c->get('settings')['database'];
// $pdo = new PDO("mysql:host=" . $settings['host'] . ";dbname=" . $settings['database_name'], $settings['user'], $settings['pass']);
// $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
// $pdo->setAttribute(PDO::ATTR_CASE, PDO::CASE_LOWER);
// $pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
// return $pdo;
//};

$container['view'] = function ($container) {
// $settings = $container->get('settings')['views'];
// $view = new Slim\Views\PhpRenderer($settings);
// return $view;

$view = new \Projek\Slim\Plates([
'directory' => 'app/views',
'assetPath' => 'public/assets',
'fileExtension' => 'phtml',
// Template extension (default: false) see: http://platesphp.com/extensions/asset/
'timestampInFilename' => false,
]);

$view->setResponse($container->get('response'));

$view->loadExtension(new Projek\Slim\PlatesExtension(
$container->get('router'),
$container->get('request')->getUri()
));

$view->loadExtension(new League\Plates\Extension\URI($container->get('request')->getUri()->getPath()));

return $view;
};

$container['session'] = function ($c) {
return new \SlimSession\Helper;
};

$container['flash'] = function () {
return new \Slim\Flash\Messages();
};

$container['notFoundHandler'] = function ($container) {
return function ($request, $response) use ($container) {
return $container['response']
->withStatus(404)
->withHeader('Content-Type', 'text/html')
->write($container->view->getPlates()->render("404"));
};
};
Loading

0 comments on commit b993e46

Please sign in to comment.