routing

Zend Framework 2 Segment Route matching 'test' but not 'test/'

老子叫甜甜 提交于 2019-12-24 19:27:08
问题 I have two modules Admin and Application. In the module application I have the following route in my module.config.php: 'admin' => array( 'type' => 'Segment', 'options' => array( 'route' => '/admin[/:controller[/:action]]', 'constraints' => array( 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*', 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', ), 'defaults' => array ( '__NAMESPACE__' => 'Admin\Controller', 'module' => 'Admin', 'controller' => 'Index', 'action' => 'index', ), ), 'may_terminate' => true, 'child

routing to blank request in mvc asp.net using IIS 6.0

人盡茶涼 提交于 2019-12-24 19:17:33
问题 I'm attempting to connect to my published website using the following url. http://www.mywebsite.com/ I keep getting: The incoming request does not match any route. Here are my routing rules: routes.MapRoute( "Default", // Route name "{controller}.aspx/{action}/{id}", // URL with parameters new { controller = "Home", action = "Index", id = "" } // Parameter defaults ); routes.MapRoute( "Default2", // Route name "/", // URL with parameters new { controller = "Home", action = "Index", id = "" }

paramconverter not converting parameters

五迷三道 提交于 2019-12-24 18:50:36
问题 I have a problem with symfony 4. i'm migrating an existing app from symfony 3.3 to symfony 4 and I get an error I can't correct. here is my controller : BaseController is the controller responding to sm_admin routes class HomeController extends BaseController { public function __construct(ParamBagService $parambag, CacheService $cache) { parent::__construct($parambag, $cache); $this->routePrefix = 'sm_adminarea_'; } /** * @Route("/", name="adminarea_index") * @Template("@SMAdmin/Home/index

Zend Framework 2 routing error: resolves to invalid controller class or alias

点点圈 提交于 2019-12-24 17:09:33
问题 I'm trying to learn Zend Framework 2 and I have their skeleton application up and running. In order to access it I visit http://localhost:8080/. When visiting that link it displays their generic Zend page. What I want to be able to do is visit http://localhost:8080/application/test and have it bring me to a different page with a different layout. Here is the module.config.php <?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework

OSMDroid Routing problems when following a tutorial

血红的双手。 提交于 2019-12-24 16:52:34
问题 I utilise the following code to put a route overlay onto an OSM droid map, using code gotten from the following tutorial (http://code.google.com/p/osmbonuspack/wiki/Tutorial_1) but slightly tweaked into a custom method, rather than being used in the OnCrerate method. Now this does route and produces a green overlay on the map. However, there is a problem exhibited from the For Loop onwards. This is because road.mNodes is always size zero indicating that no instructions are coming down.

Using a strongly typed ActionLink when the action method doesn't take a primitive type

血红的双手。 提交于 2019-12-24 16:33:41
问题 Does anyone know how I could go about doing something like : Html.ActionLink(c => c.SomeAction(new MessageObject { Id = 1 } )) This should output a link with the url of "/Controller/SomeAction/1", pointing at an ActionMethod along the lines of: public Controller : Controller { public ActionResult SomeMethod(MessageObject message) { // do something with the message return View(); } } I've written something similar for generating forms, but that doens't need to include the Id value on the end

Rails routing is being wonky with IE

China☆狼群 提交于 2019-12-24 16:22:30
问题 Wanting to play with jQuery, Orbited, and FasterCSV, I made a Rails chat application. You can browse to a URL and there is a chat window that is similar to IRC. You can also export the contents of the chat window by visiting the same URL but adding a ".csv" extension to the URL. HTML version: http://host.name/channel/sweetchatroom CSV version: http://host.name/channel/sweetchatroom.csv In Firefox, Safari, and Chrome it works normal. In IE, If I visit the "HTML" URL, I get the CSV version of

Removing 'index.html' from my re-directed PHP website url

你。 提交于 2019-12-24 16:22:19
问题 I'm using Heroku to deploy my site and have tricked it into thinking my static site is a dynamic one by including an index.php file that simply routes to my index.html. I've done this in order to simply host my site on Heroku, which apparently does not normally host static sites, just dynamic ones (to my knowledge). QUESTION: How can I remove the index.html that comes out at the end of my website: www.roberttassy.co/index.html ? In my code, I have an index.php file has the code block: <?php

WCF 4 Routing Service - protocol bridging issue

隐身守侯 提交于 2019-12-24 15:24:48
问题 I have the following WCF protocol bridging scenario: a WCF Client using basicHttp binding talking to a Routing Service which forwards the request to the Service using netTcp. Client <-> basicHttpBinding (SOAP 1.1) <–> Router Service <–> netTcpBinding (SOAP 1.2) <–> Service The routing functionality works perfectly until we expose the service to our C++ client that uses gSOAP library to pass messages to the service. If the C++ client communicates with the Service directly, the call succeeds;

URL Routing - yii-basic-app - Yii2

天大地大妈咪最大 提交于 2019-12-24 15:11:09
问题 i was trying to pass ID in URL. I was getting difficulty to do it. So, i was going through tutorials like Larry Ullman - URL Routing. My problem is: I created confirm.php page and created a controller too but error like NOT FOUND (#404) coming. SiteController.php <?php namespace app\controllers; use Yii; use yii\filters\AccessControl; use yii\web\Controller; use yii\filters\VerbFilter; use yii\swiftmailer\Mailer; use app\models\LoginForm; use app\models\ContactForm; use app\models\EntryForm;