File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 191191 */
192192
193193Plugin::load ('Migrations ' );
194+ Plugin::load ('AdminLTE ' , ['bootstrap ' => true , 'routes ' => true ]);
195+
194196
195197// Only try to load DebugKit in development mode
196198// Debug Kit should not be installed on a production system
219221 ->useImmutable ();
220222Type::build ('datetime ' )
221223 ->useImmutable ();
224+
225+ Configure::write ('Theme ' , [
226+ 'title ' => 'Maicon Pinto ' ,
227+ 'logo ' => [
228+ 'mini ' => '<b>M</b>P ' ,
229+ 'large ' => '<b>Maicon</b>PINTO '
230+ ],
231+ 'login ' => [
232+ 'show_remember ' => false ,
233+ 'show_register ' => false ,
234+ 'show_social ' => false
235+ ]
236+ ]);
Original file line number Diff line number Diff line change 1616
1717use Cake \Controller \Controller ;
1818use Cake \Event \Event ;
19+ use Cake \Core \Configure ;
1920
2021/**
2122 * Application Controller
@@ -58,5 +59,9 @@ public function beforeRender(Event $event)
5859 ) {
5960 $ this ->set ('_serialize ' , true );
6061 }
62+
63+ $ this ->viewBuilder ()->theme ('AdminLTE ' );
64+
65+ $ this ->set ('theme ' , Configure::read ('Theme ' ));
6166 }
6267}
Original file line number Diff line number Diff line change @@ -36,5 +36,6 @@ class AppView extends View
3636 */
3737 public function initialize ()
3838 {
39+ $ this ->loadHelper ('Form ' , ['className ' => 'AdminLTE.Form ' ]);
3940 }
4041}
You can’t perform that action at this time.
0 commit comments