-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 | ||
|
||
|
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")); | ||
}; | ||
}; |