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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:13:31+00:00 2026-05-28T04:13:31+00:00

I’ve been looking into EJS and JavaScriptMVC. I see quite a bit of value

  • 0

I’ve been looking into EJS and JavaScriptMVC. I see quite a bit of value through JVMC’s controllers and their models (in some cases, namely 3rd party rest integration). However, I develop in PHP using a traditional MVC such as Zend.

Typically for working with Ajax, I’ll set it up just as I would any other page (model/view/controller), however instead of rendering the view, I’ll return it, json_encode it and echo it out. Such as this:

echo json_encode($this->View->render('View_Name', true));

This view will have already been passed data, done it’s thing, and is now returning fully rendered in a JSON object I can work with in JavaScript.

This seems simple enough. So, with this type of setup, what is the benefit of using something like EJS?

It appears I would now have to not only define a new file for a view, but also continue to use the same controllers and spit out JSON instead of just the rendered view. That JSON would then contain the data used for the EJS view.
Am I missing something?

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-05-28T04:13:32+00:00Added an answer on May 28, 2026 at 4:13 am

    Its hard for me to see a benefit with EJS unless you can use templates multiple times in your application, which is not always the case. I also program in PHP and have tried several JavaScript frame works. If I’m making a simple application I just stick to JQuery, but I think the best framework to work in is ExtJS: http://www.sencha.com/

    When you define your different objects the view is created for you using a default template. You can also add a different look and feel to each of the objects and switch back and forth between multiple templates. The browser support is awesome and it really makes for building a great application. Take a look, tell me what u think…

    The latest version uses MVC application architecture: http://www.sencha.com/products/extjs/whats-new-in-ext-js-4/

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

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am trying to loop through a bunch of documents I have to put
That's pretty much it. I'm using Nokogiri to scrape a web page what has

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.