Questions tagged [front-controller]

The Front Controller Pattern provides a centralized entry point for handling requests in web applications.

Front controllers are often used in web applications to implement workflows. While not strictly required, it is much easier to control navigation across a set of related pages (for instance, multiple pages might be used in an online purchase) from a front controller than it is to make the individual pages responsible for navigation.

144 questions
1
vote
1 answer

Qi4j in a JSF Application

In Qi4j you have to assemble the composites. Can someone tell me where to handle this in a JSF 2.0 application? Should i extend the FrontController-Servlet ? Or is it enough to assemble at the point, when the application is being deployed and…
Alebon
  • 1,189
  • 2
  • 11
  • 24
1
vote
1 answer

A Controller plugin defined in application.ini not found by the front controller

I defined a plugin in application.ini directory like resources.frontController.plugins.acl = "CMS_Controller_Plugin_Acl" The namespace CMS_ is set to be autoloaded in bootstrap.php $autoLoader = Zend_Loader_Autoloader::getInstance(); …
mrN
  • 3,734
  • 15
  • 58
  • 82
1
vote
0 answers

How to fix unable to detect the front controller, disabling the PHP server error="Passthru script index.php does not exist under /Users

[ unable to detect the front controller, disabling the PHP server error="Passthru script "/index.php"] does not exist under /Users/local/Desktop/portofolio/1 This is the index.php this is the error here is my application tree structure, the…
John D
  • 21
  • 2
1
vote
1 answer

php72 dynamic url routing with front controller via entry point standard not working Google App Engine [GAE]

My dynamic URL is not reading on my website on GAE, cause I want to use the incoming GET to query my database. As it stands, Php72 does not allowing routing from app.yaml must be from front controller via entry point which the default is…
chiefo
  • 281
  • 1
  • 5
  • 15
1
vote
1 answer

View management and selection in desktop app

How is view management and selection typically accomplished in a desktop app? I know the FrontController is a popular pattern in web apps but I have the feeling that it is not well suited for desktop applications since selecting pages is easier than…
Christophe Herreman
  • 15,895
  • 9
  • 58
  • 86
1
vote
0 answers

How to get a php front controller to parse a page in a subdirectory

Have a working hardcoded PHP site on a Cpanel host, am migrating (slowly cause I am a sysadmin not a coder) to Google App Engine. Have front page and root level pages working, but pages in subdirectories not working. GAE PHP 7.2 wants all requests…
Matt
  • 11
  • 1
1
vote
0 answers

htaccess redirect taking precedence over htaccess basic authentication

I have the following htaccess which redirects front controller commands to a given file.... RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]*)$ /index.php?a=$1 [L] Which…
IainW
  • 55
  • 8
1
vote
1 answer

how run an action after executing the action of control (in all of the pages)

I have a plugin for frontcontroller. It works fine for dispatcherloodstartup method, but postdispatcher can't call action! What is wrong? This is my plugin: class Places_Controller_Plugin_ActionSetup extends Zend_Controller_Plugin_Abstract { public…
afsane
  • 1,889
  • 6
  • 25
  • 40
1
vote
0 answers

Access sesssion variable on HTML template PHP

I have a simple web form where I want the form to remember the last entry in case the validation is retrieving an error. The general process is: enter data in the form -- press submit -- data validation -- if error, display error message, keep…
Gert Lõhmus
  • 79
  • 2
  • 12
1
vote
3 answers

What is FrontController design pattern? How much level is DispatcherServlet using it?

Actually I am trying to understand the DispatcherServlet and came to know that it is following the FrontController Design Pattern. While trying to understand the FrontController design pattern came across this link FrontController from Oracle Doc…
JAVA
  • 524
  • 11
  • 23
1
vote
1 answer

What are these routing styles called in a web application?

What do you call routing that maps one URL directly to a file? Example: http://localhost/directory/file.php => /var/www/apache/htdocs/directory/file.php What do you call routing like one on…
Dennis
  • 7,907
  • 11
  • 65
  • 115
1
vote
0 answers

php create front-controller to include file from other folder if not exist

I'm creating a php front-controller because I need to include file from other folders instead of creating the same file for those that have the same content Example of a directory structure rome - index.php - detail.php - show.php another…
FireFoxII
  • 828
  • 4
  • 18
  • 31
1
vote
1 answer

Front controller redirection works but the route is wrong for some routes

I've been wrapping my head around this problem for the whole day and nothing seems to work so far. I admit that it can be a really lame problem but I can't even explain it exactly at the moment, but I'll try and look forward to get some help! I have…
1
vote
3 answers

Should all Front Classes use singleton?

Consider Martin Fowler's Patterns Of Enterprise Application Architecture, and the pattern of Front Controller: http://martinfowler.com/eaaCatalog/frontController.html Apparently, it uses the singleton pattern. Well, I have a package of classes in…
Cg Alive
  • 639
  • 1
  • 6
  • 11
1
vote
0 answers

C# MVC Mapping all routes to a frontcontroller

I'm trying to use the "maproute" function to map all routes to one controller. So far it's not working. I have several razor views (.cshtml) that I want to go through one controller. I try to use the following code: routes.MapRoute( name:…
Jakob N
  • 11
  • 3