controller problem
<?
ob_start();
/**
* @classDescription this is the free text controller
*/
class FreeTextController extends AppController
{
var $name = "freetextcontroller";
var $helpers = array("html", "javascript");
/**
* test method
* @return
*/
function index(){
echo 123;
$this->layout = "club_free_text_layout";
}
}
?>
$Route->connect('/free_text',array('controller'=>
'freetext','action' => 'index'));
please can anyone tell me why when i visit the /free_text i get
Not found
The requested address index was not found on this server.
and when i visit free_text/index
123
Not found
The requested address index was not found on this server.
did I do something wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home