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 9270907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:29:10+00:00 2026-06-18T15:29:10+00:00

Even though PyroCMS is an excellent CMS to use and I highly recommend anybody

  • 0

Even though PyroCMS is an excellent CMS to use and I highly recommend anybody and everybody using when the situation grants it.

However, my situation calls for a custom CMS that just has quite a bit of differences that I am instead developing mine with the use of some of the libraries I see out there that are free to use. The main one I am currently working with right now is Phil Sturgeon’s Template library.

Now since obviously he uses it for PyroCMS I am trying to match up as close to a file structure as he does with that so that the template system will flow smoothly without any issues.

I am currently in a quandary right now because I have my login form is not finding a partial and I’m not quite sure why. When my dashboard calls the metadata partial it loads it up just fine but something is amidst and is not loading it when I call it in the login form.

Here is my current login controller, login form view, and the file structure to ensure it is set up properly.

if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Login extends Backend_Controller 
{
    public function __construct()
    {
        parent::__construct(); 
    }

public function index()
{ 
    $this->template
           ->set_layout(FALSE)
           ->build('login');
    }
}

<head>

    <!-- metadata needs to load before some stuff -->
    <?php file_partial('metadata'); ?>

</head> 

applications/
    themes/
        supr(my custom theme from template)/
            views/
                login.php
                partials/
                    metadata.php  

Any ideas from anyone?

  • 1 1 Answer
  • 0 Views
  • 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-06-18T15:29:12+00:00Added an answer on June 18, 2026 at 3:29 pm

    In your controller:

    $this->template
        ->set_layout(FALSE)
        ->set_partial('metadata', 'partials/metadata.php')
        ->build('login');
    }
    

    note the added call to set_partial.

    In your view:

    <?php echo $template['partials']['metadata']; ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Even though it is possible to write generic code in C using void pointer(generic
Even though the following works: http://jsfiddle.net/N7D5r/ My attempt at using the same code does
Can anybody tell me why even though I have this mapping: mapping.Id().GeneratedBy.Assigned(); and I
Even though It has a performance issue, may I know what is the use
Even though I'm using different ajaxUrl's. Like ajax01Url , ajax02Url , etc . Each
even though i select multiple files using below html. <input type=file id=multiplefiles name=uploadedfile[] multiple>
Even though I'm using NSAutoreleasePool in a tight loop, the following line in the
Even though it's not part of HTTP 1.1/RFC2616 webapps that wish to force a
Even though I have a fermi card(gtx 560) I get this error on VS2010:
Even though I've been reading other topics about my kind of problem, I can't

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.