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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:00:31+00:00 2026-06-05T16:00:31+00:00

I’m planning on coding a little basic cms and got some questions. Imagen you

  • 0

I’m planning on coding a little basic cms and got some questions.

Imagen you have a Navigation like this:

Home --> www.foo.com/home
About Us --> www.foo.com/about_us
Contact --> www.foo.com/contact

Each of them are a controller and sub navigation could be actions. Imagen now, you have a button “Add Navigationpoint” so a user can add a new page. He will add the page “News”, so now I’d need to create a controller and an index action and maybe some other actions.

Basically, this is no problem. I could just generate a string and create the file. But whats the nice way? Somehow i think, this is wrong.

Note: I don’t want to use any databases. Also i will try to change the views from .phtml to .html and use js. Passing json from the controller to my view.

The goal is the following: The user should be able to add a new page, type in the template of that page, add a css and some js files. I’ll save the whole homepage structure on the filesystem.

My idea is to create a helper which checks e.g. if the according view exists. So i don’t need controllers and actions at all.

Anyway, I’m quite unsure, hope you understood me.

The reason why i want to have everything within .html files and use JS for templating is, that i want it to be live editable and most designers don’t know PHP Syntax. I really like mustache and since mustache needs JSON anyway, why not just use JS. Also i really like JS more then PHP. And the whole thing should be a little challenge, never done anything like this.

Thanks!

  • 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-05T16:00:33+00:00Added an answer on June 5, 2026 at 4:00 pm

    I would suggest not generating code controllers/actions for new “user submitted” pages.

    I would suggest using a single controller for rendering/creating any “user submitted” pages.

    For example the url could look like this:

    News --> www.foo.com/custom/render/news

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have some data like this: 1 2 3 4 5 9 2 6
For some reason, after submitting a string like this Jack’s Spindle from a text
I have just tried to save a simple *.rtf file with some websites and
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
link Im having trouble converting the html entites into html characters, (&# 8217;) i

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.