Joined: 22 Mar 2007 |
Posts: 3 |
|
|
|
Posted: Wed Mar 21, 2007 10:43 am |
|
|
|
|
|
I'm afraid that everone here doesn't know about CakePHP, one of the PHP frameworks, but I have difficulties in debugging CakePHP in phpEd(Standard Edition), and will ask someone who knows the answer anyway.
My 'Test' project is a very simple AJAX example.
Two actions- 'index' and 'update' are in C:\workspace\cakephp\app\controllers\tests_controller.php.
-- tests_controller.php --
<?php
class TestsController extends AppController {
var $name = 'Tests';
var $helpers = array('Html', 'Javascript', 'Ajax');
function index()
{
//Do Nothing
}
function update()
{
$this->layout = 'ajax';
}
}
?>
Two view files, index.thtml and update.thtml corresponding to each action are in C:\workspace\cakephp\app\views\tests
--index.thtml--
<?php echo $ajax->link('Link', '/tests/update', array('update' => array('first', 'second'))); ?>
<div id="first"> first div </div>
<div id="second"> second div </div>
--update.thtml--
<?php echo $ajax->div('first'); ?>
first div updated: <?php echo strtotime('now'); ?>
<?php echo $ajax->divEnd('first'); ?>
<?php echo $ajax->div('second'); ?>
second div updated
<?php echo $ajax->divEnd('second'); ?>
The Test project properties I set are like the following:
Project: C:\Program Files\nusphere\phped\Projects\tests.ppj
Root directory: C:\workspace\cakephp
Run mode: HTTP mode (3rd party WEB server)
Root URL: http://localhost/cakephp/tests/index
I opened tests_controller.php in the embedded editor, and started "Run
in Debugger", but an error message pops saying
"Failed to start debug session.
Please make sure that debugger module is installed on the server that
corresponds to
http://localhost/cakephp/tests/index/app/controllers/tests_controller...
URL"
I tried several combinations of project properties, but in vain.
Please correct me, if anyone succeeded in debugging CakePHP in phpEd.
|
|