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

  • Home
  • SEARCH
  • 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 8983685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:54:04+00:00 2026-06-15T20:54:04+00:00

I am using RainTPL, Idiorm and Gluephp for a simple website driven by a

  • 0

I am using RainTPL, Idiorm and Gluephp for a simple website driven by a sqlite database.

When the front page is loaded everything is fine.
http://home.techtic.info

When the other page is looaded i get the output from the front page and the output from the other page that is loaded by RainTPL.
http://home.techtic.info/admin

Question : How can i prevent the data from loading when the second url is loaded?

This is the code:

RainTPL::configure('tpl_dir', 'view/');
RainTPL::configure('cache_dir', 'app/cache/');
RainTPL::configure('base_url', 'http://' . $_SERVER['SERVER_NAME'] . '/');
RainTPL::configure('tpl_ext', 'php');
RainTPL::configure('php_enabled', true);

ORM::configure('sqlite:app/database');

$urls = array(
    '/' => 'index',
    '/admin' => 'admin'
);

class index {

    function GET() {
        $content = ORM::for_table('product')->find_array();

        $index = new RainTpl();
        $index->assign('content', $content);
        $index->draw('main');
    }

}

class admin {

    function GET() {
        $admin = new RainTpl();
        $admin->draw('admin/admin');
    }

}
  • 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-15T20:54:05+00:00Added an answer on June 15, 2026 at 8:54 pm

    Been trying for 4 hours now. RainTPL does not like subdirectories. If you have the same problem. do not put the template files in subdirectories.

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

Sidebar

Related Questions

Using the C# Facebook SDK 5.0.3 everything works fine whit the client.Get(/me). But when
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
Using emacs on Ubuntu 11.10. I want to connect to a SQL Server database
Using WebViewBrush I can render web page content (it's screen shot) to e.g. Rectangle
Using the http://www.ifans.com/forums/showthread.php?t=132024 post from another question i am allowing the user to enter
Using Java, how can I extract all the links from a given web page?
Using Play 2.1-RC1 I can't write simple test. Here's the action code: def echoTestTagFromXml
Using MongoDB C# Driver (official form 10gen), I'm doing the following code: using (database.RequestStart())
Using a CSS image sprite, I'm creating an 'interactive' image where hovering over certain
Using a populated Table Type as the source for a TSQL-Merge. I want to

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.