mvc

How is MVC more convenient?

I have a large website that I have time to convert to a nice custom-framework that I can build to my needs. I want to build my own, and not use something like Smarty because I'd like to... know how all the guts of it work cut any and all bloat learn it, just for kicks But, after building it in different ways, several times...I keep f...

favicon dissapears

Hello, Does anyone know why the favicon dissapears Background: I have my site made according to mvc So, I will have a frontcontroller and a main layout All the other views will be loaded in the $content variable from the main layout. The main layout holds the tags withe the link rel "shortcut favicon". The favicon dissapears when I...

Kohana - subfolders within views folder

I'm working on the admin section of a site using Kohana. I've created a "admin" subfolder within the views folder to store admin views. I'm also using a modified instance of the Template Controller for the admin section called Admin Template Controller, seen here: abstract class Admin_Template_Controller extends Template_Controller { ...

Simple php routing problem

I am setting up a simple routing system for my new custom MVC framework that I am making. Currently my router class views the URL as such: www.example.com/controller/controller_action/some/other/params So, essentially...i've been reserving the first two segments of the URI for controller routing. However, what if I just want to run t...

What is your opinion of the Telerik Extensions for MVC?

I've started digging around with using the Telerik Extensions for MVC. They don't integrate seemlessly into my current project, but I could reorganize things to fit it in. But, I'm wondering if it would be worth it in the end. I've been searching for reviews on the extensions, I haven't seen too many. So I'm asking here. On their websi...

Display custom text if asp.net mvc for each loop is empty

Still learning asp.net and mvc, please be gentle :) Currently setting up an MVC view to consume and display an RSS feed, using this method described on CodeProject. What I want to do is when no items are returned for the RSS feed, display a custom piece of text, eg something like the following piece of psuedocode. If ViewData.Model.It...

PHP: What Opensource extentions can we add to MVC frameworks?

Hello All, I am currently working on my own implementation of MVC php framework. I would like to know what opensource extentions/libraties are good enough to be added to a common php MVC framework. Thanks ...

Where do I store MVC/MVP and Service layer unit tests?

In MVC/MVP style applications that have Controller/Presenter classes within the Client Application assembly and then a Services layer assembly containing Service classes, where do people recommend storing their unit tests? For ease of execution it'd be nice to have a single Test assembly that references both the Client and Services, and...

How to run multiple versions of Symfony PHP Framework

I have several web projects built with Symfony v1.0, but I am excited by the new features in Symfony version 1.4 (Improved security, native email support and improved performance). How can I continue to develop my 1.0 projects but also create a testing environment for version 1.4? ...

How to profile SQL queries in MVC framework?

Hello All, I have been working on my own php MVC framework. I just wanted to get your ideas on how to profile all the queries run on my framework. I have done other profiling stuff but i have no clear idea of how to profile the sql queries too for the users to see if they turn profiling on. Thanks ...

Is MVC a Design Pattern or Architectural pattern

According to Sun and Msdn it is a design pattern. According to Wikipedia it is an architectural pattern In comparison to design patterns, architectural patterns are larger in scale. (Wikipedia - Architectural pattern) Or it is an architectural pattern that also has a design pattern ? Which one is true ? ...

Zend framework techniques

I am trying to migrate to zend framework. Should each webpage be a Controller or an action. What is the advantage of having multiple actions. Can they talk to each other? and whats the best use of Action helpers and View helpers. Please guide me on how to start on the framework.. thanks ...

In SAAS architecture, how do I handle db schema and MVC user logins for multi-tenants

Our requirement is something like this. We are building a multi-tenant website in ASP.NET MVC, and each customer should be able to create their own users as per predefined user roles. We are thinking about to create a schema for few tables which would be common for customers. So customer can login to system according to their schema lo...

MVC function - okay in the view?

I am upgrading my site from some old spaghetti coding to some nice, clean custom MVC structure (and having fun learning in the process). On my page to display blog listings, I had a function that would help my dynamically build HREF's for the a links - to keep track of applied filters via $_GET...hard to explain...but here it is: /* AP...

How to make CakePHP redirect to a different action/controller?

My situation: The user is presented with a table or list of items. Beside each item they can click a checkbox to select it, and then at the bottom is a select box which says "With selected items...", and things like "delete", "move to project", "download", etc. You know the deal - bulk operations. Some of the operations will execute imm...

Designing mvc controller layer

Hi, I am trying to understand and practice the MVC-pattern to improve my development. So I started refactoring an application I once wrote and have progressed so far. It is completely clear how my model looks like and also the view is ready so far. But now I am searching for a good practice to design my controller layer. I have created a...

ASP.NET MVC Two Way Data Binding of Model to Radio Button List using Typed Model.

I have a mvc view made up of a matrix of radio buttons. Each row of radio buttons is in a group and represents a typed object from the model. Using the guidance of various blogs and postings I have successfully bound the posted form results to the typed model array in the controller action, however cannot seem to successfully reverse t...

MVC model where to put data specific checks

I'm writing my first application with Zendframework. My question is about the Model–View–Controller (MVC) architectural pattern. I currently have a model with refer to a database table. Here's the classes that I currently have : Model_Person Model_PersonMapper Model_DbTable_Person Now, I see a lot of examples on the net, but all of...

Cakephp: Abstracting AppController another level, possible?

Hi All, I was wondering if it's somehow possible to add another abstraction controller between AppController and my app's other controllers? So that my controllers, e.g. UsersController extends SecureController and SecureController extends AppController. Also I want to be able to have other controllers extend AppController directly: So...

Well built php applications to learn from?

Hello, I was wondering if any of you fine gentlemen would be able to recommend some of your favorite open source php applications in terms of code quality and proper programming technique. Though I have been using frameworks for quite a while, I would love to see how professional applications go about this. I'm particularly interested...