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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:34:01+00:00 2026-05-25T13:34:01+00:00

For Example, I would like to use the jUI template for the Admin area

  • 0

For Example, I would like to use the jUI template for the Admin area and CRUD, and for the FrontEnd and Pages I’d like to use the Elephant theme (or my super secret custom one). If so How do I go about defining this. I create a separate API for each area? this is in my index.php in the Root. And I’d like to mod the Shared template and keep the old one as well.
I think I am supposed to create a new Dir in root/atk4/templates/MyNewTemplate with the new jUI theme + css + images And create a new Dir in the root/atk4/templates/shared or is that defined in the page class of the main app?

include 'atk4/loader.php';
$api=new Frontend('sample_project','elephant');
$api->main();

http://agiletoolkit.org

  • 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-05-25T13:34:02+00:00Added an answer on May 25, 2026 at 1:34 pm

    By definition, your administration and your frontend are DIFFERENT web application and they deserve to have a different API class. Also they should be located on different URLs so the entry-point would be different for them. the content of frontend/index.php would contain:

    $api=new Frontend('MyFrontend','elephant');
    

    while for the admin/index.php

    $api=new Admin('MyAdmin');
    

    By having separate applications like that you also making sure that authentication for the front-end will not allow users to access administration area.

    While Admin classes are different, it’s perfectly normal to:

    • Define common ancestor for both API classes. (class Admin extends MyApp and class Frontend extends MyApp)
    • Use same controller, especially if you need to do some calculation. For example if you are implementing Payroll Web App, you might want to have $this->payroll=$this->add(‘Controller_Payroll’) in both of the APIs.
    • Models simply MUST be shared. Because you are accessing same database. All you need to do is to include frontend’s “lib” folder as PHP resource into your admin.

    Pages must not be shared, you don’t want to mix pages up.

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

Sidebar

Related Questions

I would like to use my function, for example DebugR() , but I don't
I would like to use a Sqlite datbase in an iphone application. The example
I would like to use jquery to populate fields with default values. For example,
i've a simple question , if for example i would like to use a
I would like to use Subversion and checkout only source files (for example: checking
I would like to use .htaccess to point any calls to http://example.com/ to http://www.example.com
I'm using mvc2 and I would like to use action in controller, for example
I have the following string: keyword|title|http://example.com/ I would like to use the PHP function
In this example: I would like to use the id which is defined in
I would like use .appendTo() on different elements determined by a function. For example,

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.