Wow.. Removing default.thtml from the layouts folder, fixes the problem. I
am confused ... :(
thanks.
On 1/19/08, Novice Programmer <[EMAIL PROTECTED]> wrote:
>
> Linux distribution : Redhat.
> Cake 1.1.x
>
> Is there something special that needs to be done when using another
> layout? Here is what i have done. In the default layout, the following code
> is written.
>
>
> <
> a href=" /uploads/index"><?php echo $html->image(' topmast5.jpg',
> array('width'=>"86", 'height'=>"33", 'border'=>"0", 'alt'=>""));?></ a></
> td>
> The controller looks like.
>
> <?php
>
> class
> UploadsController extends AppController {
>
> var $name = 'Uploads' ;
>
> var $helpers = array ('Html', 'Javascript', 'Ajax' );
>
> function index()
>
> {
>
> $this->layout = 'uploadlayout';
>
> }
>
> }
>
> ?>
>
>
> --
> Thanks & Regards,
> Novice (http://ishuonweb.wordpress.com/).
>
--
Thanks & Regards,
Novice (http://ishuonweb.wordpress.com/).
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---