First, the thing I notice is that controllers must be the plural of
the models, so the calss should be called FreeTextsController... $name
should also be 'FreeTexts'. It should then also be saved as
free_texts_controller.php. If you don't use a model, I'd like to add
$uses = null just to be safe.

Then the index can be reached via /free_texts/index.


On 20 okt, 13:12, alex <[email protected]> wrote:
> <?
> 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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to