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
0
votes
2 answers

Htaccess redirect all requests to index (does not allow images) Wamp Server

Please I need a help. I am working on a site and wants to redirect all requests to an index file while allowing access to images, css, javascripts and other documents that are not php scripts. I am working on a local server (WAMP). The problem I…
andychukse
  • 155
  • 1
  • 2
  • 11
0
votes
1 answer

Implementating Dependency Injection for better routing in mvc or mvvm in php using DICE

I've trying to expand my knowledge on separation of concerns in php. I've been practicing for over a year I think and trying to write my own mvc framework for practice. Now I am stuck again in routing and on how to initiate MVC triad. I have this…
0
votes
2 answers

Yii Front Controller Implementation before Routing

I want to implement a language Setter for all Controllers and need to run this method before the Routing to the Controller -> the front Controller. If have implemented a method in my Controller Class, but for some usages it must be run earlier…
Sebastian Viereck
  • 5,455
  • 53
  • 53
0
votes
1 answer

How to implement Front Controller Pattern in Android

I am just learning Android, and I am trying to implement a Front Controller. I am using a Class which extends from BroadCastReceiver as a Front Controller: public class FrontControllerReceiver extends BroadcastReceiver {} In this way, every time…
adrian4aes
  • 849
  • 2
  • 14
  • 23
0
votes
1 answer

Access action-helper inside front-controller plugin

I am trying to call a view of helper from a plug in(registered in bootstrap). From any controller i am able to access without any issue but not from a plugin. Below is my code. Any help is appreciated. thank you. Miguel class Plugins_security…
zeid10
  • 511
  • 8
  • 28
0
votes
3 answers

Log Slow Pages Taking Longer Than [n] Seconds In ColdFusion with Details

(ACF9) Unless there's an option I'm missing, the "Log Slow Pages Taking Longer Than [n] Seconds" setting isn't useful for front-controller based sites (e.g., Model-Glue, FW/1, Fusebox, Mach-II, etc.). For instance, in a Mura/Framework-One site, I…
0
votes
1 answer

Securing POST data in Router

I am trying to figure out the best way of sanitizing and to some degree validating POST data that is sent to my app. I made this function that resides in my Router and is called in the __constructor if($_POST) is present: private function…
imperium2335
  • 23,402
  • 38
  • 111
  • 190
0
votes
1 answer

What is the best practice for adding a template into a page using PHP and jQuery AJAX

I'm trying to imitate the ASP Master/Content page concept in PHP/jQuery environment, in which I can run an AJAX call in master page to include the content page dynamically. I added a div place holder in my master page and used the following code to…
Fred
  • 378
  • 1
  • 10
  • 26
0
votes
1 answer

PHP Front Controller Class Not Found (Namespaces)

The following PHP code public function go() { $controller = ucfirst($this->getController()); $method = $this->getAction(); require_once VENDOR_PATH . DS . 'Core/Controller/Controller.php'; require_once VENDOR_PATH . DS .…
R Down
  • 2,292
  • 2
  • 17
  • 23
0
votes
1 answer

Frontcontroller is not working properly in Zend Framework

I have created module(Admin) completely in zend framework. Now I want to start work in front end so I can manage my whole site from backend. But I am unable to getting solution for this. If I run my page at localhost, then it automatically call the…
user1414979
  • 92
  • 4
  • 11
0
votes
3 answers

FrontController with RequestFactory in GWT

I am using RequestFactory with GWT. It all working fine. I have a RequestContext interface that point to my DAO methodes. Now I want to implement some kind of security check before calling the DAO. The first thing that comes to my mind is to use a…
Momo
  • 2,471
  • 5
  • 31
  • 52
0
votes
1 answer

PHP templating classes and presentation logic?

I've researched about the Front Controller pattern. I'm convinced I'm going to use that pattern for an upcoming project. I have no code written yet, but, how do I use presentation logic for my websites? What if I want to display certain information…
0
votes
1 answer

How to refactor long Front Controller?

I am using a Front Controller to send the user through a series of pages with questions. Pretty much everything must be dynamic as the pages, the questions, and everything else is set in the admin interface and stored in the database. I am tracking…
Matt McCormick
  • 13,041
  • 22
  • 75
  • 83
0
votes
1 answer

Where and How to Locate this Zend Controller Plugin

I have a Zend front controller plugin. It depends on the request object, and on the service layer, but it is not reusable across applications. Therefore, I think it belongs in a Plugins directory within the application's controller directory. …
DatsunBing
  • 8,684
  • 17
  • 87
  • 172
0
votes
3 answers

What URL should Ajax call in an MVC project?

I'm a semi newbie so please bear with me... Note, I don't know either jQuery or Json at this point In my MVC project (I'm not using a framework but the project combines a front controller with an MVC), I have: 1) a Controller, which sends some…
JDelage
  • 13,036
  • 23
  • 78
  • 112
1 2 3
9
10