Cant get the hang of this Bootstrap Dispatcher - Joomla! Forum - community, help and support
hi all,
i started using joomla , im satisfied framework except backend terribly slow.
however problem related dispatcher/bootstrap. want of controller files located in directory "controllers". atm want make empty component has dashboard/control panel , menu above it. later on add modules , functionality can edit under controllers/views/model dirs
atm admin structure slike
com_component
|--------------component.php
|--------------config.xml
|--------------install.mysql.sql
|--------------uninstall.mysql.sql
|--------------controllers/ <---------- here want controllers
|------------------------dashboard.php (etc)
|--------------helpers/
|------------------------helper.php
|--------------models/
|------------- views/
i stayed night not sleeping @ trying figure out way define more custom named controllers in controllers directory. im not sure if should remove base controller line. appreciated. if tell me remove. looked @ joomla dev , doc sites. im not pro coder , think spend time on single file
help appreciated
gavarni
i started using joomla , im satisfied framework except backend terribly slow.
however problem related dispatcher/bootstrap. want of controller files located in directory "controllers". atm want make empty component has dashboard/control panel , menu above it. later on add modules , functionality can edit under controllers/views/model dirs
atm admin structure slike
com_component
|--------------component.php
|--------------config.xml
|--------------install.mysql.sql
|--------------uninstall.mysql.sql
|--------------controllers/ <---------- here want controllers
|------------------------dashboard.php (etc)
|--------------helpers/
|------------------------helper.php
|--------------models/
|------------- views/
code: select all
<?php
//-- no direct access
defined('_jexec') or die('=;)');
// require base controller
require_once( jpath_component.ds.'controller.php' );
// require specific controller if requested
if( $controller = jrequest::getword('controller'))
{
$path = jpath_component.ds.'controllers'.ds.$controller.'.php';
if( file_exists($path))
{
require_once $path;
} else
{
$controller = '';
}
}
//i dont if statment
// create controller
$classname = 'hentaidbscontroller'.$controller;
$controller = new $classname( );
// perform request task
$controller->execute( jrequest::getvar( 'task' ) );
// redirect if set controller
$controller->redirect();
i stayed night not sleeping @ trying figure out way define more custom named controllers in controllers directory. im not sure if should remove base controller line. appreciated. if tell me remove. looked @ joomla dev , doc sites. im not pro coder , think spend time on single file

help appreciated
gavarni
Comments
Post a Comment