Hello,
I will explain more, because it might not be clear enough
I want to set the ajax url to: www.domain/controller/method
I already have everything in place for this with normal php.
But if I have to do this with ajax, I am not getting the intended result.
The result should be some json variable being echo'd back to me.
It is not e...
Hi,
I have a partial view that should not be cached in a output cached MVC view.
Usually you write non-cached content by using Response.WriteSubstitution.
The problem is that WriteSubstitution takes as a parameter a HttpResponseSubstitutionCallback callback which looks like this:
public delegate string HttpResponseSubstitutionCallback(...
I'm clearly missing the concept of routing - for an experiment I've set the route as
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute("Standard",
"{devicetype}/{devicesub}/{language}/{culture}/{controller}/{action}/{id}",
new
{
...
I would like to be able to limit the number of rows that can be in table on View page (I am using ASP.NET MVC), and if there are more rows, it goes to the next page.
...
Hi!
I'm wondering which framework i should go for. As in the title, after some time of googling it seems that last battle will be between PureMVC and MVC#. For clarification my requirements are:
open source
free for commercial use
lightweight
easy to learn (I don't want to spend a lot of time trying to figure it out, no time for that)...
Hello guys,
I would like to ask what is the ideal folder structure for a MVC framework that should be able to support multiple installations. For example, I install xyz framework and i run two or more sites based on this single installation of xyz framework rather than installing the framework for each site.
This is probably done in Co...
Hello All,
For the one who is thinking of developing a MVC framework, it is important that he understands what it actually is.
So my questions is what are the characteristics of a PHP MVC framework?
...
Hello,
Can i use codeigniter's input class to xss clean GET data like this:
$somevar = $this->input->xss_clean($_GET['somevar']);
CodeIgniter's suggest that xss_clean method should be used for the submitted data.
I wonder whether $_GET vars are submitted or just visiting a URL.
So can i use it in that fashion?
...
Hello everyone!
I am preparing an iphone application in which I am using many transition among view controllers.
This means that there is one main menu view controller and after i press the necessary box, a modal view controller is being pushed. After this, I press an exit button and come again to the main menu and I can reenter.
The p...
what's better to have a view for create and one for edit or one for both ?
...
Hi every one ,
this is my first question Here ,
I am a beginner in asp.net , and i want to make a CMS project using it
After Some readings I found that the MVC structure is very suitable for Me
Just want to know :
how much the asp.net MVC depend on the normal asp.net??
as a beginner i don't know the level of knowledge for Normal asp....
Why default factory WON'T return full name of the controllers (with namespaces)?
I'm using Service Locator and autofac.
using System.Web.Mvc;
using Microsoft.Practices.ServiceLocation;
namespace Application.Core.MVC
{
public override IController CreateController(System.Web.Routing.RequestContext requestContext, string **contr...
Im learning a lot about how MVC frameworks work by looking around and studying existing ones. It seems that every framework I see has a layout where each method in each controller has its own template file. So there will be a login template, a logout template, register, so on and so on.
My question is, how and why would you create a tem...
I realize this is a very generic question, but I guess I'm not really looking for a definitive answer. Being new to PHP frameworks I'm having a hard time getting my head around it.
Javascript frameworks, especially with UI extensions, seem to have their sort-of MVC-like approach by separating your JS code from your design. It just seem...
I know there has been much shout about the goodness of MVC pattern.
My question is that is there any pattern better than MVC to be
implemented in PHP?
I don't know but other pattern might have advantages over the MVC pattern.
So actually I am in search whether there is something better than MVC.
Thanks in advance.
...
I just wondered how people were approaching this situation. It's something that seems like a weak point in my usage of MVC with ORMs (NHibernate in this case)...
Say you have a fine-grained and complicated entity in your model. You will likely have an admin page to manage objects of this type. If the entity is complicated, it is unli...
Hello everyone,
I am struggling with MVC - which I love - and it's features.
I am trying to load a menu in the Application_Start event.
I want to load some links with the correct url (controllerName/actionName) but I can't use the Url.Action or other methods to build the path.
Can anybody help me?
Regards
Alberto
...
Hello guys,
i'm wondering how i can manually start execute a controller action of my MVC application. My goal is to integrate the html output of /myController/myAction into another php application (typo3) using a simple include. I thought of manually instantiating the controller, the view and the layout, to bypass the dispatcher. Sadly ...
Hi,
I have a template that renders a chart according to a given list (retrieved from my domain layer). This template is displayed several times (with a different list) on a same page (let's say "home page") and in several pages as well.
For instance,
<g:render template="/template/chart" model="order: 'asc', orderBy: 'age', max: 5, dom...
I have the following scheme: My site is a trivia game, so every Question "hasMany" Answers, but a Question also "hasOne" correct Answer that is also represented by the Answer model.
I have yet to test this, but my programmer's instinct tells me that the retrieved array will be kind of redundant and it will not separate the correct Answer...