hello thanks for the replay. i am using wamp on windows. i also use the directory aqstat for development: http://localhost/aqstat/
than i have created the layout in the /aqstat/app/views/layout/ default.thtml the page looks like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title><?php echo $title_for_layout?></title> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> <link rel="stylesheet" type="text/css" href="css/app.style.css" media="all" /> <script type='text/javascript' src='js/jquery-1.1.3.1.pack.js'></ script> <script type='text/javascript' src='js/menu.js'></script> <script type='text/javascript' src='js/functions.js'></script> </head> <body> ........ ....... ...... and this piece of code for menu: <div id="navigation"> <ul> <li><a id="tlevel-home" href="index.php" class="tlevelmenu">Home</a></li> <li><a id="tlevel-about-us" href="about-us.php" class="tlevelmenu">About us</a></li> <li><a id="tlevel-ems-online" href="asterisk.php" class="tlevelmenu">Asterisk</a></li> <li><a id="tlevel-products-services" href="products-services.php" class="tlevelmenu">Products & Services</a></li> <li><a id="tlevel-faqs" href="faqs.php">FAQ's</a></li> </ul> </div> and than: <ul class="menuleft"> <li><a href="stats/general">General Stats</a></li> <li><a href="stats/agents">Stats by Agents</a></li> <li><a href="stats/date">Stats by Date</a></li> <li><a href="stats/hour">Stats by Hour</a></li> <li><a href="stats/weekday">Stats by Weekday</a></li> <li><a href="stats/month"> Stats by Month</a></li> <li><a href="stats/year">Stats by Year</a></li> <li><a href="stats/detailed">Detailed Stats</a></li> <li><a href="stats/live">Live Stats</ a></li> </ul> I know i should put a path somewhere but i thought that cakephp will know how to manage those links from left menu :) state is the controller and general/agents//date etc are methods of the state controller. Those it haver to do with the mod_rewrite or something? the config file looks like this: i did not touch it the router file: <?php /* SVN FILE: $Id: routes.php 4409 2007-02-02 13:20:59Z phpnut $ */ /** * Short description for file. * * In this file, you set up routes to your controllers and their actions. * Routes are very important mechanism that allows you to freely connect * different urls to chosen controllers and their actions (functions). * * PHP versions 4 and 5 * * CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/ > * Copyright 2005-2007, Cake Software Foundation, Inc. * 1785 E. Sahara Avenue, Suite 490-204 * Las Vegas, Nevada 89104 * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @filesource * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project * @package cake * @subpackage cake.app.config * @since CakePHP(tm) v 0.2.9 * @version $Revision: 4409 $ * @modifiedby $LastChangedBy: phpnut $ * @lastmodified $Date: 2007-02-02 07:20:59 -0600 (Fri, 02 Feb 2007) $ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ /** * Here, we are connecting '/' (base path) to controller called 'Pages', * its action called 'display', and we pass a param to select the view file * to use (in this case, /app/views/pages/home.thtml)... */ $Route->connect('/', array('controller' => 'pages', 'action' => 'display', 'home')); /** * ...and connect the rest of 'Pages' controller's urls. */ $Route->connect('/pages/*', array('controller' => 'pages', 'action' => 'display')); /** * Then we connect url '/test' to our test controller. This is helpfull in * developement. */ $Route->connect('/tests', array('controller' => 'tests', 'action' => 'index')); ?> and the index.php file <?php /* SVN FILE: $Id: index.php 4409 2007-02-02 13:20:59Z phpnut $ */ /** * Requests collector. * * This file collects requests if: * - no mod_rewrite is avilable or .htaccess files are not supported * -/public is not set as a web root. * * PHP versions 4 and 5 * * CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/> * Copyright 2005-2007, Cake Software Foundation, Inc. * 1785 E. Sahara Avenue, Suite 490-204 * Las Vegas, Nevada 89104 * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @filesource * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project * @package cake * @since CakePHP(tm) v 0.2.9 * @version $Revision: 4409 $ * @modifiedby $LastChangedBy: phpnut $ * @lastmodified $Date: 2007-02-02 07:20:59 -0600 (Fri, 02 Feb 2007) $ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ /** * Get Cake's root directory */ define('APP_DIR', 'app'); define('DS', DIRECTORY_SEPARATOR); define('ROOT', dirname(__FILE__)); define('WEBROOT_DIR', 'webroot'); define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS); /** * This only needs to be changed if the cake installed libs are located * outside of the distributed directory structure. */ if (!defined('CAKE_CORE_INCLUDE_PATH')) { //define ('CAKE_CORE_INCLUDE_PATH', FULL PATH TO DIRECTORY WHERE CAKE CORE IS INSTALLED DO NOT ADD A TRAILING DIRECTORY SEPARATOR'; define('CAKE_CORE_INCLUDE_PATH', ROOT); } if (function_exists('ini_set')) { ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS); define('APP_PATH', null); define('CORE_PATH', null); } else { define('APP_PATH', ROOT . DS . APP_DIR . DS); define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS); } require CORE_PATH . 'cake' . DS . 'basics.php'; require APP_PATH . 'config' . DS . 'core.php'; require CORE_PATH . 'cake' . DS . 'config' . DS . 'paths.php'; $bootstrap=true; $uri =setUri(); /** * As mod_rewrite (or .htaccess files) is not working, we need to take care * of what would normally be rewritten, i.e. the static files in app/ webroot/ */ if ($uri === '/' || $uri === '/index.php') { $_GET['url'] = '/'; require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php'; } else { $elements=explode('/index.php', $uri); if (!empty($elements[1])) { $path = $elements[1]; } else { $path = '/'; } $_GET['url']=$path; require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php'; } ?> is there a cakephp path constant or something i can use in for the menu ? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---