Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Yana
/
WTB_1920
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4843d92e
authored
Apr 19, 2020
by
Yana
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fixed connection with DB
parent
11651508
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
45 deletions
ci/application/config/routes.php
ci/application/controllers/Pages.php
ci/application/views/pages/food_page.php
ci/application/views/pages/home.php
ci/application/views/products/index.php
ci/assets/js/tortilla.jpg
index.php
ci/application/config/routes.php
View file @
4843d92e
...
...
@@ -49,11 +49,9 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| Examples: my-controller/index -> my_controller/index
| my-controller/my-method -> my_controller/my_method
*/
//
$route['default_controller'] = 'pages/view';
//
$route['(:any)'] = 'pages/view/$1';
$route
[
'default_controller'
]
=
'pages/view'
;
$route
[
'(:any)'
]
=
'pages/view/$1'
;
$route
[
'404_override'
]
=
''
;
$route
[
'translate_uri_dashes'
]
=
FALSE
;
$route
[
'products'
]
=
'products'
;
//$route['news'] = 'news';
//$route['profiler']="Profiler_controller";
//$route['profiler/disable']="Profiler_controller/disable";
ci/application/controllers/Pages.php
View file @
4843d92e
...
...
@@ -12,9 +12,7 @@ class Pages extends CI_Controller {
$this
->
load
->
view
(
'templates/header'
,
$data
);
$this
->
load
->
view
(
'pages/'
.
$page
,
$data
);
// $this->load->view('food_page' , $data);
$this
->
load
->
view
(
'templates/footer'
,
$data
);
$this
->
load
->
helper
(
'url'
);
}
}
...
...
ci/application/views/pages/food_page.php
View file @
4843d92e
...
...
@@ -29,21 +29,7 @@
<link
rel=
"stylesheet"
href=
"
<?php
echo
base_url
();
?>
assets/css/style.css"
>
</head>
<body>
<nav
class=
"navbar navbar-expand-lg navbar-dark ftco_navbar bg-dark ftco-navbar-light"
id=
"ftco-navbar"
>
<div
class=
"container"
>
<a
class=
"navbar-brand"
href=
"index.html"
><span
class=
"flaticon-pizza-1 mr-1"
></span>
Food
<br><small>
Runner
</small></a>
<button
class=
"navbar-toggler"
type=
"button"
data-toggle=
"collapse"
data-target=
"#ftco-nav"
aria-controls=
"ftco-nav"
aria-expanded=
"false"
aria-label=
"Toggle navigation"
>
<span
class=
"oi oi-menu"
></span>
Menu
</button>
<div
class=
"collapse navbar-collapse"
id=
"ftco-nav"
>
<ul
class=
"navbar-nav ml-auto"
>
<li
class=
"nav-item"
><a
href=
"#"
class=
"nav-link"
>
Home
</a></li>
<li
class=
"nav-item"
><a
href=
"#about"
class=
"nav-link"
>
About us
</a></li>
<li
class=
"nav-item"
><a
href=
"#contacts"
class=
"nav-link"
>
Contacts
</a></li>
</ul>
</div>
</div>
</nav>
<!-- Page Features -->
<!-- /.row -->
...
...
ci/application/views/pages/home.php
View file @
4843d92e
...
...
@@ -29,21 +29,7 @@
<link
rel=
"stylesheet"
href=
"
<?php
echo
base_url
();
?>
assets/css/style.css"
>
</head>
<body>
<nav
class=
"navbar navbar-expand-lg navbar-dark ftco_navbar bg-dark ftco-navbar-light"
id=
"ftco-navbar"
>
<div
class=
"container"
>
<a
class=
"navbar-brand"
href=
"index.html"
><span
class=
"flaticon-pizza-1 mr-1"
></span>
Food
<br><small>
Runner
</small></a>
<button
class=
"navbar-toggler"
type=
"button"
data-toggle=
"collapse"
data-target=
"#ftco-nav"
aria-controls=
"ftco-nav"
aria-expanded=
"false"
aria-label=
"Toggle navigation"
>
<span
class=
"oi oi-menu"
></span>
Menu
</button>
<div
class=
"collapse navbar-collapse"
id=
"ftco-nav"
>
<ul
class=
"navbar-nav ml-auto"
>
<li
class=
"nav-item"
><a
href=
"#"
class=
"nav-link"
>
Home
</a></li>
<li
class=
"nav-item"
><a
href=
"#about"
class=
"nav-link"
>
About us
</a></li>
<li
class=
"nav-item"
><a
href=
"#contacts"
class=
"nav-link"
>
Contacts
</a></li>
</ul>
</div>
</div>
</nav>
<!-- END nav -->
<section
class=
"home-slider owl-carousel img"
style=
"background-image: url(../assets/images/bg_1.jpg);"
>
<div
class=
"slider-item"
style=
"background-image: url(../assets/images/bg_3.jpg);"
>
...
...
@@ -72,7 +58,7 @@
<span
class=
"subheading"
>
Delicious
</span>
<h1
class=
"mb-4"
>
Gazpacho
</h1>
<p
class=
"mb-4 mb-md-5"
>
We offer you only fresh food.
</p>
<p><a
href=
"
#
"
class=
"btn btn-primary p-3 px-xl-4 py-xl-3"
>
Order Now
</a></p>
<p><a
href=
"
index
"
class=
"btn btn-primary p-3 px-xl-4 py-xl-3"
>
Order Now
</a></p>
</div>
<div
class=
"col-md-6 ftco-animate"
>
<img
src=
"../assets/images/bg_1.png"
class=
"img-fluid"
alt=
""
>
...
...
ci/application/views/products/index.php
View file @
4843d92e
...
...
@@ -9,17 +9,15 @@
<div
id=
"block-content"
>
<!--
<?php
foreach
(
$products
as
$key
=>
$value
)
:
?>
<h2>
<?php
echo
$value
[
'title'
];
?>
<?php
foreach
(
$products
as
$key
=>
$value
)
:
?>
<h1
class=
"grid-item Deserts"
data-text-color=
"#000"
data-image=
"https:"
>
<?php
echo
$value
[
'title'
];
?>
</h1>
<?php
echo
$value
[
'description'
];
?>
</h2>
?>
<?php
endforeach
?>
-->
<div
class=
"grid-item Deserts"
data-text-color=
"#000"
data-image=
"https:"
><a
href=
"https://codepen.io/evalasters/pen/bwYwgx"
>
Nombre2
</a></div>
<div
class=
"grid-item Deserts"
data-text-color=
"#000"
data-image=
"https:"
><a
href=
"https://codepen.io/evalasters/pen/KgRGdR"
>
Nombre3
</a></div>
...
...
ci/assets/js/tortilla.jpg
0 → 100644
View file @
4843d92e
37.2 KB
index.php
View file @
4843d92e
...
...
@@ -114,7 +114,7 @@ switch (ENVIRONMENT)
*
* NO TRAILING SLASH!
*/
$application_folder
=
'application
-bootstrap_lab
'
;
$application_folder
=
'application'
;
/*
*---------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
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