REFACTORING: updated the base template with some examples, also added annotations for autocomplete in the core view and controller core.
This commit is contained in:
23
application/controller/controllerController.php
Normal file
23
application/controller/controllerController.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace Nibiru;
|
||||
|
||||
use Nibiru\Adapter\Controller;
|
||||
|
||||
class controllerController extends Controller
|
||||
{
|
||||
public function pageAction()
|
||||
{
|
||||
View::assign([
|
||||
'name' => 'rapid prototyping framework',
|
||||
'title' => 'Nibiru Controller Example',
|
||||
'css' => Config::getInstance()->getConfig()[View::NIBIRU_SETTINGS]["smarty.css"],
|
||||
'js' => Config::getInstance()->getConfig()[View::NIBIRU_SETTINGS]["smarty.js"]
|
||||
]);
|
||||
}
|
||||
|
||||
public function navigationAction()
|
||||
{
|
||||
JsonNavigation::getInstance()->loadJsonNavigationArray();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user