I want to add some classes to a CodeIgniter project that aren't models, views, or controllers. They will most likely be a built in Models/Controllers and used in various ways. Where should I store these classes, and what is the best way to implement them in CodeIgniter? (Or more generally, any MVC-based framework?).
EDIT: Looking throug...
I'm creating a library of display objects for our application. They render the html of a lot of the common objects (users, conversations, messages, etc) in various views. By views I mean the object can spit back different 'zoom levels' of itself with different markup.
Some display objects contain other display objects to render eg. a us...
I have a Java project that I'm trying to implement with a model-view-controller design. I have the backbone of all of the components established. I'm having some trouble deciding on how to connect it all together, particularly the view and the controller.
I have a class called MainView that extends JFrame. I have various other classe...
Hi,
I implemented a custom membership provider in ASP.net MVC, and can't figure out how to make the username non case-sensitive at signin. So, for example, "Solomon" could log in, but "solomon" could not.
My implementation is very bare bones. I basically just wrote code for ValidateUser(), and Change Password().
Thanks for the help!...
I'm writing a Cocoa application where I have an auto generated app delegate:(MyAppDelegate.h/MyAppDelegate.m)
So I am not sure of the best way to structure the class files for this Cocoa application. I understand MVC thoroughly (on the iPhone) but I'm having a block as to try organising the source properly in a Cocoa app.
I need to spa...
When using the MVC pattern, should I implement a seperate controller for each view?
...
I've just started using AutoMapper and so far found it very straight-forward and time-saving.
Just one thing I'm not sure about - how do I map all the properties of a given type in the same way?
Can this be done with AutoMapper in a single statement, using a lambda, as with regular mapping?
...
So I'm working on rewriting a program for a professor, and I have some questions related to the Model-View-Controller pattern. The program is called GraphViewer and is used to design and view graphs (as in Graph Theory, not Statistics). So far I have planned the structure thus:
Models
VertexModel - Has id, location, color, and a col...
Hello,
On application start I'm creating Config object (Singleton). How could I make Config object be available inside Model and Controller? Should I pass Config object to constructor as method parametr or I should better use $this->config = Config::getInstance()? Any other methods?
Thank you
...
So from what I understand the basic application structure for cocoa programs is an AppController in MainMenu.xib. The AppController then initializes the WindowControllers and ViewControllers which has all the UI logic and in turn load the xib files for the rest of the application. The AppController also creates the Model classes.
My co...
Dear all,
I'm working in a C# project and we are , in order to get some unity across the different parts of our UI, trying to use the MVC pattern. The client is windows form based and I'm trying to create a simple MVC pattern implementation.
It's been more challenging than expected, but I still have some questions regarding the MVC pat...
Hello,
Right now I'm trying to create my own tiny MVC (just for practice and for understanding MVC pattern details). I'd like to cache parts of pages (dropdowns, lists etc.) and I don't know what is the best way to organize it.
Let's imagine that I have PostsController with method getPostDetailsShortly($post_id).
This method could look...
I am using codeigniter framework.
where should i sanitize PHP input - controller or model ?
...
I'm a big fan of compilation errors. I find the a lot easier to fix than runtime bugs. I currently using the ASP.NET MVC framework and I find it has a lot of room for typos that the compiler won't catch.
For Example if I want to return the view Data from the Index action.
public ActionResult Index()
{
return View("Data");
}
can...
Hello,
I'm just learning MVC so you could find my question rather strange...
My Controller have access to different shared objects through Container object passed to Controller's constructor. To access shared objects I should do $this->container->db to access Database adapter or $this->container->memcache to access Memcached adapter. I...
I am developing an MVC application using nHibernate; running through VS's built in web server the application runs without errors. When setup and running through IIS7 on localhost, the application throws a SQlClientPermission exception after calling System.Data.SqlClient.PermissionDemand (SqlClient calls this internally)
I have enabled...
Is it possible to add price values to product options in the Codeigniter Cart Class. For example: T-shirt price is $10.00, but the XXL size is an extra $2.00.
$data = array(
'id' => 'abc',
'qty' => 1,
'price' => 10.00,
'name' => 'T-Shirt',
'options' => array('Size' => ...
I need to run some code that will fetch some configuration values from the web.config during first run of an asp.net mvc application. These values will not change frequently but that is not my main concern.
One way that I can think of is calling the method in Application_Start() method in the global.asax.cs file, but I am hoping someone...
How does one handle a user confirmation when using MVP/MVC in a Web environment?
Presenter:
if (_view.AskUserForConfirmation())
{
// do something
}
In a winforms project this won't be any problem but in a web environment the confirmation answear will come one postback after the preseter code, how does one handle such a thing?
...
We recently deployed a new ASP MVC application to our live environment but have been experiencing intermittent issues with users logged sessions.
After a lot of logging etc we finally saw the error to be that:
User.Identity.Name returns a comma separated list of all the particular users logged in sessions. We do have other asp based si...