Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1070013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:30:10+00:00 2026-05-16T20:30:10+00:00

I have a fresh install of CakePHP 1.3.4 Stable. I created a very simple

  • 0

I have a fresh install of CakePHP 1.3.4 Stable. I created a very simple application and i am trying to get it to use the theme directory view and layout instead of the default.

\app\controllers\tests_controller.php

<?php
class TestsController extends AppController {
    var $name = 'Tests';
    var $uses = array();
    var $theme = 'rgr';


    function index() {
        $this->theme = 'rgr';
        $this->layout = 'default';

        echo "Controler = TestsController::index() ";
    }
}

\app\views\layouts\default.ctp

<?php echo $html->docType(); ?>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head></head>
    <body>
        Layout = No theme 
        <?php echo $content_for_layout; ?>  
    </body>
</html>

\app\views\tests\index.ctp

<div class="test index">
    test index, no theme
</div>

\app\views\themed\rgr\layouts\default.ctp

<?php echo $html->docType(); ?>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head></head>
    <body>
         Layout = RGR
        <?php echo $content_for_layout; ?>  
    </body>
</html>

\app\views\themed\rgr\tests\index.ctp

<div class="test index">
    View=test index, RGR theme
</div>

I have read the themes section of the 1.3 manual, and a few other posts on the subject But I have yet to figure it out. Currently the out put is

Output

Controler = TestsController::index() Layout = No theme
test index, no theme, v2

I expected to see

Controler = TestsController::index() Layout = RGR
View=test index, RGR theme

I’m thinking its a simple mistake as there does not seem to be anyone else with the same problem. I have turned off catching in the core.php.

Suggestions?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:30:11+00:00Added an answer on May 16, 2026 at 8:30 pm

    You missed var $view = 'Theme' in the controller.That’s necessary.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fresh install of Zend Framework v1.10.5 on my application server. The
I hope it's a simple one. I have a fresh install of Snow Leopard.
I have just done a fresh install of the latest stable PyroCMS version on
I have a VPS running a fresh install of Ubuntu 10.04 LTS. I'm trying
I created a virtualbox with a fresh install of ubuntu 9.10. I am trying
I have a fresh CakePHP 1.3 install and it currently has one layout. I
I try to update a project from SVN (I have a fresh install of
I have 2 sql scripts, one is for fresh install and the other one
I've just created a fresh ASP.NET MVC 4 solution and have added 3 Areas
I have a fresh install of IIS 7 - I just added Web Platform

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.