Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-27-2008, 01:18 PM
Junior Member
 
Join Date: May 2008
Posts: 1
Default Router

hi guys ,

i need your help plz , i have this script


PHP Code:

<?php
error_reporting
(E_ALL|E_STRICT);
ini_set('display_errors'true);
date_default_timezone_set('Europe/London');

$rootDir dirname(dirname(__FILE__));
$libDir $rootDir '../../../lib';
$lib2Dir $rootDir '../library';

set_include_path($libDir
            
PATH_SEPARATOR $lib2Dir
            
PATH_SEPARATOR get_include_path());

require_once 
'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Controller_Front');
Zend_Loader::loadClass('Zend_Controller_Action_HelperBroker');
Zend_Loader::loadClass('Zend_Controller_Action_Helper_ViewRenderer');
//Zend_Loader::loadClass('ZFiA_Controller_Plugin_NoRoute');

// set up action helpers
$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();

Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);

// setup controller
$frontController Zend_Controller_Front::getInstance();



$frontController->throwExceptions(true);
$frontController->setControllerDirectory('../application/controllers');
//$frontController->registerPlugin(new ZFiA_Controller_Plugin_NoRoute());

// run!


$compat = new Zend_Controller_Router_Route_Module(array(), $dispatcher$request);
$this->addRoute('default'$compat);
$frontController->dispatch();


?>

and i dont know ho to use my own router ,, could you help me please ?

regards

Last edited by mnask79 : 05-27-2008 at 01:38 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:39 PM.