I would like to know if it is possible to change the default route of :module/:controller/:action/* to something like /my/prefix/:module/:controller/:action/*, keeping the possibility to not specify a module and/or controller and/or action.
Add a prefix for the default route of Zend_Controller_Router_Route_Module
505 views Asked by Cristiano Santos At
2
There are 2 answers
0
Stoyan Dimov
On
You have to setup the front controller resource in the application ini.
resources.frontController.baseurl = "/my/prefix/"
Another thing you can do is add the prefix to each route in your resource router like this:
resources.router.routes.route-name.route = "/my/prefix/module/controller/action"
resources.router.routes.route-name.defaults.module = "module"
resources.router.routes.route-name.defaults.controller = "controller"
resources.router.routes.route-name.defaults.action = "action"
Related Questions in PHP
- How to add the dynamic new rows from my registration form in my database?
- Issue in payment form gateway
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- Function in anonymous Laravel Blade component
- How to change woocomerce or full wordpress currency with value from USD to AUD
- General questions about creating a custom theme Moodle CMS
- How to add logging to an abstract class in php
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Laravel: Using belongsToMany relationship with MongoDB
- window.location.href redirects but is causing problems on the webpage
- Key provided is shorter than 256 bits, only 64 bits provided
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
Related Questions in ZEND-FRAMEWORK
- How to properly quote / escape this INSERT statement in Zend 1 Framework
- Zend Barcode label distance ajustment
- cast in doctrine query builder
- Laminas $filter->getValues() in getData() of laminas-form return duplicate of array collection when using Element File
- I want to translate country name to english in using diffrent country locale Magento2?
- How to get the name of the module, controller and action in Laminas framework?
- Zend XmlRpc Client gzinflate out of memory on php 7.1
- Zend Barcode image isn't generate correctly in CodeIgniter
- How to switch between the read-only and read-write db conenctions in Laminas using DBAL
- Database transaction is not working as expected even rollback is not working
- Ajax call in Zend 1.12 return 404
- Zend Framework 1 legacy application redesign
- Zend Barcode image do not generate correcly
- How to click the button after displaying the dialog box in jquery
- Zend Session Error, Session must be started before any output has been sent to browser
Related Questions in MODULE
- (in promise) TypeError: NetworkError when attempting to fetch resource
- Cannot load modules/mod_dav_svn.so into server
- Not reading the function in a JavaScript Module file, by calling onclick in the html document
- Adding Modules to a Namespace using IIFE
- Preparing metadata (pyproject.toml) ... error
- I want to understand modularity in java. When compiling my app I have a ResolutionException
- ModuleNotFoundError: No module named 'src' while importing logging
- Nest.js can't resolve dependencies of the external library's Reflector dependency
- Npm build error: "Module not found: Error: Can't resolve './component/intro' in
- problemas con los CORS en .net core 7 y angular 15
- how can i fix this :ModuleNotFoundError
- A given package is installed but spyder won't see it
- Should I even continue trying to import a module from the parent package?
- Linking errors with includes in C++ nested modules
- Export and create package of c++20 modules
Related Questions in ROUTES
- No webpage was found for the web address: https://localhost:7002/Category/Add?area=Admin. Why is my URL generated like ?area=Admin instead of /Admin/
- Symfony Framework - Route cannot be found even if it is defined in Controller
- Linux Networking - Routing packets from one network interface to another
- Redirect outbound traffic to a different port
- API not fetch data with dynamic page NEXT js
- Angular title routing translation
- Slim routing in PHP-DI container
- Laravel form action not accepting $order->id but accepting hard coded value
- Express-Router Library Error: Route.post() requires a callback function but got a [object Object]
- Vercel Problem | 404: NOT_FOUND Code: NOT_FOUND
- React Routes not Rendering Components
- data transfer to ip address using osi model
- `UseRouter` Caches the Cookies should I use `redirect`
- No connection could be made because the target machine actively refused it. (localhost:80) when attempting to test routes with TestServer
- Problem in hosting React App with react-router-dom on IIS Server
Related Questions in ZEND-CONTROLLER-ROUTER
- I want to array parameter with Zend router in ZF1
- ZF1: Routes in database
- In Zend, How Can I Route Controller-Omitted URLs To The Index Controller
- Zend Regex route reverse with paginator
- zend framework 2 notice appears in console when call a console action
- Zend_Controller_Router_Route_Hostname for two domain names
- zend2 routing paginator and module
- Add a prefix for the default route of Zend_Controller_Router_Route_Module
- Set multiple router for same controller in zend framework
- Zend Framework How to disable a controller
- zend resources.frontController.baseUrl don`t work
- Setup Zend Router with and without lang uri parameter
- Zend Controller Router : Define variables to point to a different action in one controller
- How to call a javascript function from zend controller indexAction?
- Zend Rest Route: goto the right method (get/put/post/delete)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You can set baseUrl in application.ini
and you can ofcourse not specify module/controller/view but it will be default one = default/index/index unless you set up different default module/controller/view.