Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
don
Commits
1741937a
Commit
1741937a
authored
Nov 12, 2018
by
Okhin
Browse files
Utilisatoin des templates spécifiques pour le backend
parent
1a2f4c2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/controller/admin.php
View file @
1741937a
...
...
@@ -15,6 +15,10 @@ class Admin extends Controller
public
function
beforeRoute
(
$f3
,
$args
)
{
parent
::
beforeRoute
(
$f3
,
$args
);
// Template de base par défaut
$this
->
template
=
"backend/base.html"
;
// URL de base à utiliser sur le site
$f3
->
set
(
'DONS_STATUTS'
,
array
(
0
=>
"Ponctuel non validé"
,
...
...
@@ -41,19 +45,6 @@ class Admin extends Controller
100
=>
"non applicable"
,
));
$f3
->
set
(
'TAILLES'
,
array
(
1
=>
_
(
'Coupe Homme, Taille'
)
.
' S'
,
2
=>
_
(
'Coupe Homme, Taille'
)
.
' M'
,
3
=>
_
(
'Coupe Homme, Taille'
)
.
' L'
,
4
=>
_
(
'Coupe Homme, Taille'
)
.
' XL'
,
5
=>
_
(
'Coupe Femme, Taille'
)
.
' S'
,
6
=>
_
(
'Coupe Femme, Taille'
)
.
' M'
,
7
=>
_
(
'Coupe Femme, Taille'
)
.
' L'
,
8
=>
_
(
'Coupe Femme, Taille'
)
.
' XL'
,
9
=>
_
(
'Coupe Homme, Taille'
)
.
' XXL'
,
10
=>
_
(
'Coupe Femme, Taille'
)
.
' XXL'
,
));
if
(
!
$f3
->
get
(
'SESSION.admin'
))
{
$mapper
=
new
\
DB\SQL\Mapper
(
$f3
->
get
(
'DB'
),
'admins'
);
$auth
=
new
\
Auth
(
$mapper
,
array
(
'id'
=>
'user_id'
,
'pw'
=>
'password'
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment