That's a strange question, just get their lazy asses to work with thml for
CakePHP 1.1 or ctp for CakePHP 1.2 ;)

You can do this: create an app/html_view.php with the following contents:

<?php

uses ('view' . DS . 'view');

class HtmlView extends View {
        function __construct(&$controller) {
                parent::__construct($controller);
                
                $this->ext = '.html';
        }
}

?>

Now specify that you'll be using this view on your AppController
(app/app_controller.php), example:

<?php

require_once('html_view.php');

class AppController extends Controller {
        var $view = 'Html';
}

?>

That's it, now your views can have the extension .html

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de Marcelo HernĂ¡n Ruiz
Enviado el: Jueves, 17 de Mayo de 2007 08:54 a.m.
Para: Cake PHP
Asunto: Use .html (or .htm or .php) instead of .thtml in views?

Hi, maybe this is a stupid question, but I wonder if there is the
possibility to use .html (or .htm or .php) instead of .thtml in views.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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