How to create a page/view in cakephp 3 without a model for building a dashboard?
My aim is to create a page/view without a database model - in essence I want to build a dashboard which will ultimately act as a portal page for accessing multiple tables of data (i.e. Countries, States and Genders) that I've created using the cake-bake-all method in Cakephp 3x.
By doing a little research I understood that with the built-in PagesController, I can't access the models. I'll have to create my own PagesController if I want to build a dashboard but I don't know what code to use. Is there any other easier approach to access several, unassociated models on one page? Any help would be greatly appreciated.
Update -
This is how I've created the Dashboard prototype, thanks to Chriss' advice!
Here is my code -
DashboardsController.php (/src/controller/)
<?php
namespace AppController;
use AppControllerAppController;
class DashboardsController extends AppController
{
public function index()
{
$this->loadModel ('States'); //Load models from States
$states = $this->States->find('all'); // query all states
$this->set('states', $states); // save states inside view
}
}
?>
index.ctp (src/Template/Dashboards/)
<?php //index function of dashboardscontroller ?>
<table>
<h2 class="col span_2_of_2"><?= ('State-Details') ?></h2>
<thead>
<tr>
<th scope="col"><?= $this->Paginator->sort('id') ?></th>
<th scope="col"><?= $this->Paginator->sort('state_name') ?></th>
<th scope="col"><?= $this->Paginator->sort('country_name') ?></th>
</tr>
</thead>
<tbody>
<?PHP foreach ($states as $state) : ?>
<tr>
<td>
<?= $this->Number->format($state->id) ?>
</td>
<td>
<?= h($state->state_name) ?>
</td>
<td>
<?= $state->has('country') ?
$this->Html->link($state->country->country_name, ['controller' =>
'Countries', 'action' => 'view',
$state->country->id]) : '' ?>
</td>
<td class="actions">
<?= $this->Html->link(('View'), ['action' => 'view', $state->id]) ?>
<?= $this->Html->link(('Edit'), ['action' => 'edit', $state->id]) ?>
<?= $this->Form->postLink(('Delete'), ['action' => 'delete', $state->id],
['confirm' => ('Are you sure you want to delete # {0}?', $state->id)]) ?>
</td>
</tr>
<?PHP endforeach; ?>
</tbody>
</table>
php cakephp associations dashboard
add a comment |
My aim is to create a page/view without a database model - in essence I want to build a dashboard which will ultimately act as a portal page for accessing multiple tables of data (i.e. Countries, States and Genders) that I've created using the cake-bake-all method in Cakephp 3x.
By doing a little research I understood that with the built-in PagesController, I can't access the models. I'll have to create my own PagesController if I want to build a dashboard but I don't know what code to use. Is there any other easier approach to access several, unassociated models on one page? Any help would be greatly appreciated.
Update -
This is how I've created the Dashboard prototype, thanks to Chriss' advice!
Here is my code -
DashboardsController.php (/src/controller/)
<?php
namespace AppController;
use AppControllerAppController;
class DashboardsController extends AppController
{
public function index()
{
$this->loadModel ('States'); //Load models from States
$states = $this->States->find('all'); // query all states
$this->set('states', $states); // save states inside view
}
}
?>
index.ctp (src/Template/Dashboards/)
<?php //index function of dashboardscontroller ?>
<table>
<h2 class="col span_2_of_2"><?= ('State-Details') ?></h2>
<thead>
<tr>
<th scope="col"><?= $this->Paginator->sort('id') ?></th>
<th scope="col"><?= $this->Paginator->sort('state_name') ?></th>
<th scope="col"><?= $this->Paginator->sort('country_name') ?></th>
</tr>
</thead>
<tbody>
<?PHP foreach ($states as $state) : ?>
<tr>
<td>
<?= $this->Number->format($state->id) ?>
</td>
<td>
<?= h($state->state_name) ?>
</td>
<td>
<?= $state->has('country') ?
$this->Html->link($state->country->country_name, ['controller' =>
'Countries', 'action' => 'view',
$state->country->id]) : '' ?>
</td>
<td class="actions">
<?= $this->Html->link(('View'), ['action' => 'view', $state->id]) ?>
<?= $this->Html->link(('Edit'), ['action' => 'edit', $state->id]) ?>
<?= $this->Form->postLink(('Delete'), ['action' => 'delete', $state->id],
['confirm' => ('Are you sure you want to delete # {0}?', $state->id)]) ?>
</td>
</tr>
<?PHP endforeach; ?>
</tbody>
</table>
php cakephp associations dashboard
add a comment |
My aim is to create a page/view without a database model - in essence I want to build a dashboard which will ultimately act as a portal page for accessing multiple tables of data (i.e. Countries, States and Genders) that I've created using the cake-bake-all method in Cakephp 3x.
By doing a little research I understood that with the built-in PagesController, I can't access the models. I'll have to create my own PagesController if I want to build a dashboard but I don't know what code to use. Is there any other easier approach to access several, unassociated models on one page? Any help would be greatly appreciated.
Update -
This is how I've created the Dashboard prototype, thanks to Chriss' advice!
Here is my code -
DashboardsController.php (/src/controller/)
<?php
namespace AppController;
use AppControllerAppController;
class DashboardsController extends AppController
{
public function index()
{
$this->loadModel ('States'); //Load models from States
$states = $this->States->find('all'); // query all states
$this->set('states', $states); // save states inside view
}
}
?>
index.ctp (src/Template/Dashboards/)
<?php //index function of dashboardscontroller ?>
<table>
<h2 class="col span_2_of_2"><?= ('State-Details') ?></h2>
<thead>
<tr>
<th scope="col"><?= $this->Paginator->sort('id') ?></th>
<th scope="col"><?= $this->Paginator->sort('state_name') ?></th>
<th scope="col"><?= $this->Paginator->sort('country_name') ?></th>
</tr>
</thead>
<tbody>
<?PHP foreach ($states as $state) : ?>
<tr>
<td>
<?= $this->Number->format($state->id) ?>
</td>
<td>
<?= h($state->state_name) ?>
</td>
<td>
<?= $state->has('country') ?
$this->Html->link($state->country->country_name, ['controller' =>
'Countries', 'action' => 'view',
$state->country->id]) : '' ?>
</td>
<td class="actions">
<?= $this->Html->link(('View'), ['action' => 'view', $state->id]) ?>
<?= $this->Html->link(('Edit'), ['action' => 'edit', $state->id]) ?>
<?= $this->Form->postLink(('Delete'), ['action' => 'delete', $state->id],
['confirm' => ('Are you sure you want to delete # {0}?', $state->id)]) ?>
</td>
</tr>
<?PHP endforeach; ?>
</tbody>
</table>
php cakephp associations dashboard
My aim is to create a page/view without a database model - in essence I want to build a dashboard which will ultimately act as a portal page for accessing multiple tables of data (i.e. Countries, States and Genders) that I've created using the cake-bake-all method in Cakephp 3x.
By doing a little research I understood that with the built-in PagesController, I can't access the models. I'll have to create my own PagesController if I want to build a dashboard but I don't know what code to use. Is there any other easier approach to access several, unassociated models on one page? Any help would be greatly appreciated.
Update -
This is how I've created the Dashboard prototype, thanks to Chriss' advice!
Here is my code -
DashboardsController.php (/src/controller/)
<?php
namespace AppController;
use AppControllerAppController;
class DashboardsController extends AppController
{
public function index()
{
$this->loadModel ('States'); //Load models from States
$states = $this->States->find('all'); // query all states
$this->set('states', $states); // save states inside view
}
}
?>
index.ctp (src/Template/Dashboards/)
<?php //index function of dashboardscontroller ?>
<table>
<h2 class="col span_2_of_2"><?= ('State-Details') ?></h2>
<thead>
<tr>
<th scope="col"><?= $this->Paginator->sort('id') ?></th>
<th scope="col"><?= $this->Paginator->sort('state_name') ?></th>
<th scope="col"><?= $this->Paginator->sort('country_name') ?></th>
</tr>
</thead>
<tbody>
<?PHP foreach ($states as $state) : ?>
<tr>
<td>
<?= $this->Number->format($state->id) ?>
</td>
<td>
<?= h($state->state_name) ?>
</td>
<td>
<?= $state->has('country') ?
$this->Html->link($state->country->country_name, ['controller' =>
'Countries', 'action' => 'view',
$state->country->id]) : '' ?>
</td>
<td class="actions">
<?= $this->Html->link(('View'), ['action' => 'view', $state->id]) ?>
<?= $this->Html->link(('Edit'), ['action' => 'edit', $state->id]) ?>
<?= $this->Form->postLink(('Delete'), ['action' => 'delete', $state->id],
['confirm' => ('Are you sure you want to delete # {0}?', $state->id)]) ?>
</td>
</tr>
<?PHP endforeach; ?>
</tbody>
</table>
php cakephp associations dashboard
php cakephp associations dashboard
edited Jan 1 at 10:07
w3educare
asked Dec 25 '18 at 10:11


w3educarew3educare
32
32
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
first create a Dashboard Controller inside ./src/Controller/
with the filename DashboardsController.php
. Normally the Dashboard has only one index-function, unless you prepare several subsections. Here we assume that you only have one page.
<?PHP
namespace AppController;
use AppControllerAppController;
class DashboardsController extends AppController {
public function index(){
$this->loadModel ('States');
$states = $this->States->find('all'); // query all states
$this->set ('states', $states); // save states inside view
}
} // end class DashboardsController
?>
Thats the C from MVC.
Unless you have special functionality in your tables and entities, it is not necessary to create a Table class or Entity class unless you need the PHPDoc declarations. The Cake ORM takes over for you (default class).
So let's go over the M from MVC.
$this->loadModel ('States');
only load the Model inside the Controller. No less, but no more. If you have load the model inside the Controller you can Access that model with $this->States
(e.g. $this->States->find('all');
).
Now you must save the result inside the view (from Controller: $this->set ('states', $states);
).
The last part is the view (V) from MVC.
Create a file inside ./src/Template/Dashboards/
with the Name index.ctp
(thats the template file for the index function (action) inside the Dashboards Controller).
<?PHP /* index function of Dashboards Controller */ ?>
<ul>
<?PHP foreach ($states as $state) : ?>
<li><?=$state->title; ?></li>
<?PHP endforeach; ?>
</ul>
Now you can access the Dashboard with your url followed by the Controller-Name (e.g. http://{url-to-your-cake-system}/dashboards/
).
Thats all. Cake use the Concept "convention over configuration". So If you cling to the conventions (file structure, filenames, class names, table names, etc.), Cake does it all for you more or less automatically.
P.S. In my opinion, there are only a few (and even less correct) approaches to using TableRegistry. You should try to avoid it from the beginning.
Thank you so much for your advice chriss! This completely solved my problem. I tried using TableRegistry class before & it was quite inconvenient but your method works perfectly! Thanks again mate!
– w3educare
Jan 1 at 8:29
@w3educare Do not understand it as rudeness.Do not say thank you, but vote and/or accept the answer:https://stackoverflow.com/help/someone-answers
– chriss
Jan 2 at 14:20
Okay, done!!!!!
– w3educare
Jan 3 at 6:56
add a comment |
Create a controller eg. DasboardController
and use CakeOrmTableRegistry::get(tableName)
You could use PagesController
also, but its more common to deliver static pages with it
TableRegistry
add a comment |
- create DashboradController with index method or at PageController add dashboard() method.
- create Dashboradindex.ctp or Pagedashboard.ctp
- create simple Cells for various data presentations (exmp: hourly, daily, weekly ,.. ) and include in your index.ctp / dashboard.ctp
- route to your dashboard
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53921347%2fhow-to-create-a-page-view-in-cakephp-3-without-a-model-for-building-a-dashboard%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
first create a Dashboard Controller inside ./src/Controller/
with the filename DashboardsController.php
. Normally the Dashboard has only one index-function, unless you prepare several subsections. Here we assume that you only have one page.
<?PHP
namespace AppController;
use AppControllerAppController;
class DashboardsController extends AppController {
public function index(){
$this->loadModel ('States');
$states = $this->States->find('all'); // query all states
$this->set ('states', $states); // save states inside view
}
} // end class DashboardsController
?>
Thats the C from MVC.
Unless you have special functionality in your tables and entities, it is not necessary to create a Table class or Entity class unless you need the PHPDoc declarations. The Cake ORM takes over for you (default class).
So let's go over the M from MVC.
$this->loadModel ('States');
only load the Model inside the Controller. No less, but no more. If you have load the model inside the Controller you can Access that model with $this->States
(e.g. $this->States->find('all');
).
Now you must save the result inside the view (from Controller: $this->set ('states', $states);
).
The last part is the view (V) from MVC.
Create a file inside ./src/Template/Dashboards/
with the Name index.ctp
(thats the template file for the index function (action) inside the Dashboards Controller).
<?PHP /* index function of Dashboards Controller */ ?>
<ul>
<?PHP foreach ($states as $state) : ?>
<li><?=$state->title; ?></li>
<?PHP endforeach; ?>
</ul>
Now you can access the Dashboard with your url followed by the Controller-Name (e.g. http://{url-to-your-cake-system}/dashboards/
).
Thats all. Cake use the Concept "convention over configuration". So If you cling to the conventions (file structure, filenames, class names, table names, etc.), Cake does it all for you more or less automatically.
P.S. In my opinion, there are only a few (and even less correct) approaches to using TableRegistry. You should try to avoid it from the beginning.
Thank you so much for your advice chriss! This completely solved my problem. I tried using TableRegistry class before & it was quite inconvenient but your method works perfectly! Thanks again mate!
– w3educare
Jan 1 at 8:29
@w3educare Do not understand it as rudeness.Do not say thank you, but vote and/or accept the answer:https://stackoverflow.com/help/someone-answers
– chriss
Jan 2 at 14:20
Okay, done!!!!!
– w3educare
Jan 3 at 6:56
add a comment |
first create a Dashboard Controller inside ./src/Controller/
with the filename DashboardsController.php
. Normally the Dashboard has only one index-function, unless you prepare several subsections. Here we assume that you only have one page.
<?PHP
namespace AppController;
use AppControllerAppController;
class DashboardsController extends AppController {
public function index(){
$this->loadModel ('States');
$states = $this->States->find('all'); // query all states
$this->set ('states', $states); // save states inside view
}
} // end class DashboardsController
?>
Thats the C from MVC.
Unless you have special functionality in your tables and entities, it is not necessary to create a Table class or Entity class unless you need the PHPDoc declarations. The Cake ORM takes over for you (default class).
So let's go over the M from MVC.
$this->loadModel ('States');
only load the Model inside the Controller. No less, but no more. If you have load the model inside the Controller you can Access that model with $this->States
(e.g. $this->States->find('all');
).
Now you must save the result inside the view (from Controller: $this->set ('states', $states);
).
The last part is the view (V) from MVC.
Create a file inside ./src/Template/Dashboards/
with the Name index.ctp
(thats the template file for the index function (action) inside the Dashboards Controller).
<?PHP /* index function of Dashboards Controller */ ?>
<ul>
<?PHP foreach ($states as $state) : ?>
<li><?=$state->title; ?></li>
<?PHP endforeach; ?>
</ul>
Now you can access the Dashboard with your url followed by the Controller-Name (e.g. http://{url-to-your-cake-system}/dashboards/
).
Thats all. Cake use the Concept "convention over configuration". So If you cling to the conventions (file structure, filenames, class names, table names, etc.), Cake does it all for you more or less automatically.
P.S. In my opinion, there are only a few (and even less correct) approaches to using TableRegistry. You should try to avoid it from the beginning.
Thank you so much for your advice chriss! This completely solved my problem. I tried using TableRegistry class before & it was quite inconvenient but your method works perfectly! Thanks again mate!
– w3educare
Jan 1 at 8:29
@w3educare Do not understand it as rudeness.Do not say thank you, but vote and/or accept the answer:https://stackoverflow.com/help/someone-answers
– chriss
Jan 2 at 14:20
Okay, done!!!!!
– w3educare
Jan 3 at 6:56
add a comment |
first create a Dashboard Controller inside ./src/Controller/
with the filename DashboardsController.php
. Normally the Dashboard has only one index-function, unless you prepare several subsections. Here we assume that you only have one page.
<?PHP
namespace AppController;
use AppControllerAppController;
class DashboardsController extends AppController {
public function index(){
$this->loadModel ('States');
$states = $this->States->find('all'); // query all states
$this->set ('states', $states); // save states inside view
}
} // end class DashboardsController
?>
Thats the C from MVC.
Unless you have special functionality in your tables and entities, it is not necessary to create a Table class or Entity class unless you need the PHPDoc declarations. The Cake ORM takes over for you (default class).
So let's go over the M from MVC.
$this->loadModel ('States');
only load the Model inside the Controller. No less, but no more. If you have load the model inside the Controller you can Access that model with $this->States
(e.g. $this->States->find('all');
).
Now you must save the result inside the view (from Controller: $this->set ('states', $states);
).
The last part is the view (V) from MVC.
Create a file inside ./src/Template/Dashboards/
with the Name index.ctp
(thats the template file for the index function (action) inside the Dashboards Controller).
<?PHP /* index function of Dashboards Controller */ ?>
<ul>
<?PHP foreach ($states as $state) : ?>
<li><?=$state->title; ?></li>
<?PHP endforeach; ?>
</ul>
Now you can access the Dashboard with your url followed by the Controller-Name (e.g. http://{url-to-your-cake-system}/dashboards/
).
Thats all. Cake use the Concept "convention over configuration". So If you cling to the conventions (file structure, filenames, class names, table names, etc.), Cake does it all for you more or less automatically.
P.S. In my opinion, there are only a few (and even less correct) approaches to using TableRegistry. You should try to avoid it from the beginning.
first create a Dashboard Controller inside ./src/Controller/
with the filename DashboardsController.php
. Normally the Dashboard has only one index-function, unless you prepare several subsections. Here we assume that you only have one page.
<?PHP
namespace AppController;
use AppControllerAppController;
class DashboardsController extends AppController {
public function index(){
$this->loadModel ('States');
$states = $this->States->find('all'); // query all states
$this->set ('states', $states); // save states inside view
}
} // end class DashboardsController
?>
Thats the C from MVC.
Unless you have special functionality in your tables and entities, it is not necessary to create a Table class or Entity class unless you need the PHPDoc declarations. The Cake ORM takes over for you (default class).
So let's go over the M from MVC.
$this->loadModel ('States');
only load the Model inside the Controller. No less, but no more. If you have load the model inside the Controller you can Access that model with $this->States
(e.g. $this->States->find('all');
).
Now you must save the result inside the view (from Controller: $this->set ('states', $states);
).
The last part is the view (V) from MVC.
Create a file inside ./src/Template/Dashboards/
with the Name index.ctp
(thats the template file for the index function (action) inside the Dashboards Controller).
<?PHP /* index function of Dashboards Controller */ ?>
<ul>
<?PHP foreach ($states as $state) : ?>
<li><?=$state->title; ?></li>
<?PHP endforeach; ?>
</ul>
Now you can access the Dashboard with your url followed by the Controller-Name (e.g. http://{url-to-your-cake-system}/dashboards/
).
Thats all. Cake use the Concept "convention over configuration". So If you cling to the conventions (file structure, filenames, class names, table names, etc.), Cake does it all for you more or less automatically.
P.S. In my opinion, there are only a few (and even less correct) approaches to using TableRegistry. You should try to avoid it from the beginning.
answered Dec 29 '18 at 9:49
chrisschriss
514
514
Thank you so much for your advice chriss! This completely solved my problem. I tried using TableRegistry class before & it was quite inconvenient but your method works perfectly! Thanks again mate!
– w3educare
Jan 1 at 8:29
@w3educare Do not understand it as rudeness.Do not say thank you, but vote and/or accept the answer:https://stackoverflow.com/help/someone-answers
– chriss
Jan 2 at 14:20
Okay, done!!!!!
– w3educare
Jan 3 at 6:56
add a comment |
Thank you so much for your advice chriss! This completely solved my problem. I tried using TableRegistry class before & it was quite inconvenient but your method works perfectly! Thanks again mate!
– w3educare
Jan 1 at 8:29
@w3educare Do not understand it as rudeness.Do not say thank you, but vote and/or accept the answer:https://stackoverflow.com/help/someone-answers
– chriss
Jan 2 at 14:20
Okay, done!!!!!
– w3educare
Jan 3 at 6:56
Thank you so much for your advice chriss! This completely solved my problem. I tried using TableRegistry class before & it was quite inconvenient but your method works perfectly! Thanks again mate!
– w3educare
Jan 1 at 8:29
Thank you so much for your advice chriss! This completely solved my problem. I tried using TableRegistry class before & it was quite inconvenient but your method works perfectly! Thanks again mate!
– w3educare
Jan 1 at 8:29
@w3educare Do not understand it as rudeness.Do not say thank you, but vote and/or accept the answer:https://stackoverflow.com/help/someone-answers
– chriss
Jan 2 at 14:20
@w3educare Do not understand it as rudeness.Do not say thank you, but vote and/or accept the answer:https://stackoverflow.com/help/someone-answers
– chriss
Jan 2 at 14:20
Okay, done!!!!!
– w3educare
Jan 3 at 6:56
Okay, done!!!!!
– w3educare
Jan 3 at 6:56
add a comment |
Create a controller eg. DasboardController
and use CakeOrmTableRegistry::get(tableName)
You could use PagesController
also, but its more common to deliver static pages with it
TableRegistry
add a comment |
Create a controller eg. DasboardController
and use CakeOrmTableRegistry::get(tableName)
You could use PagesController
also, but its more common to deliver static pages with it
TableRegistry
add a comment |
Create a controller eg. DasboardController
and use CakeOrmTableRegistry::get(tableName)
You could use PagesController
also, but its more common to deliver static pages with it
TableRegistry
Create a controller eg. DasboardController
and use CakeOrmTableRegistry::get(tableName)
You could use PagesController
also, but its more common to deliver static pages with it
TableRegistry
edited Dec 26 '18 at 15:11


Alex
3,500722
3,500722
answered Dec 25 '18 at 11:01
BenBen
609311
609311
add a comment |
add a comment |
- create DashboradController with index method or at PageController add dashboard() method.
- create Dashboradindex.ctp or Pagedashboard.ctp
- create simple Cells for various data presentations (exmp: hourly, daily, weekly ,.. ) and include in your index.ctp / dashboard.ctp
- route to your dashboard
add a comment |
- create DashboradController with index method or at PageController add dashboard() method.
- create Dashboradindex.ctp or Pagedashboard.ctp
- create simple Cells for various data presentations (exmp: hourly, daily, weekly ,.. ) and include in your index.ctp / dashboard.ctp
- route to your dashboard
add a comment |
- create DashboradController with index method or at PageController add dashboard() method.
- create Dashboradindex.ctp or Pagedashboard.ctp
- create simple Cells for various data presentations (exmp: hourly, daily, weekly ,.. ) and include in your index.ctp / dashboard.ctp
- route to your dashboard
- create DashboradController with index method or at PageController add dashboard() method.
- create Dashboradindex.ctp or Pagedashboard.ctp
- create simple Cells for various data presentations (exmp: hourly, daily, weekly ,.. ) and include in your index.ctp / dashboard.ctp
- route to your dashboard
answered Jan 1 at 16:41


SalinesSalines
3,07331235
3,07331235
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53921347%2fhow-to-create-a-page-view-in-cakephp-3-without-a-model-for-building-a-dashboard%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown