Skip to content

Commit 03836a1

Browse files
committed
Jet Example App
------------ * New Debug Tool usage example
1 parent 196b2c0 commit 03836a1

File tree

1 file changed

+11
-1
lines changed
  • application/Modules/Web/Articles/Controller

1 file changed

+11
-1
lines changed

application/Modules/Web/Articles/Controller/Main.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
namespace JetApplicationModule\Web\Articles;
1010

11+
use Jet\Debug;
1112
use JetApplication\Content_Article;
1213

1314
use Jet\Http_Headers;
@@ -107,6 +108,9 @@ function( $page_no ) {
107108
return MVC::getPage()->getURLPath( ['page:' . $page_no] );
108109
}
109110
);
111+
112+
Debug::varDump( $paginator, 'Paginator 1' );
113+
Debug::varDump( $page_no, 'Page NO' );
110114

111115
$paginator->setDataSource( Content_Article::getListForCurrentLocale() );
112116

@@ -129,7 +133,13 @@ function( $page_no ) {
129133
$this->view->setVar( 'paginator', $paginator );
130134

131135
$this->output( 'list' );
132-
136+
137+
Debug::varDump( $articles_list );
138+
Debug::varDump([
139+
'a' => 'aaaaa',
140+
'b' => 'bbbbb',
141+
1 => null
142+
] );
133143
}
134144

135145
/**

0 commit comments

Comments
 (0)