I would think that removing the default layout would then default to
the default cake layout (unless you specify something else).  is that
correct?

to answer your previous question, when you set

$this->layout = 'uploadlayout';

you're basically telling cake to use the layout file: \views\layouts
\uploadlayout.ctp
but.. you still need to specify the view you want to use.  by default
it will be :

\views\uploads\index.ctp

\views\__CONTROLLER_NAME__\__ACTION_NAME__.ctp


j

On Jan 18, 2:55 pm, "Novice Programmer" <[EMAIL PROTECTED]>
wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to