I read: http://stackoverflow.com/questions/2363777/iphone-how-to-pass-data-between-several-viewcontrollers-in-a-tabbar-app and was wondering what is the difference between
[[UIApplication sharedApplicaton] delegate]
and
extern struct* global
?
Conceptually, I don't see how [[UIApplication sharedApplicaton] delegate] not being a ...
I have been battling with .htaccess to get all the requests to use https on my Zend MVC.
What am seeing is that SSL turns "on" and then goes "off" as the page loads.
Below is my .htaccess file.
SetEnv APPLICATION_ENV production
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond...
In a controller action of a CastleMVC application, how can I get the user's IP Address?
I think in asp.net mvc it would be Request.ServerVariables["REMOTE_ADDR"], but I can't find an equivalent in Castle.
(I am aware of potential proxy issue's etc, the address that is reported in the request is fine)
...
Below is a function defined in my Bootstrap class. I must be missing something fundamental in the way Zend does routing and dispatching. What I am trying to accomplish is simple: For any request /foo/bar/* that is not dispatchable for any reason try /index/foo/bar/. The problem I'm having is when the FooController exists I get Action...
i know that everything is going through the controller.
but i often read articles that says something like this:
user interacts with the view
controller asks the model to change its state
model notifies the view when its sate has changed
i dont get the 3rd one. why saying that the model notifies the view, when it actually is notifyi...
can anyone tell me how do i access model from view in codeigniter?
...
<%#ViewData["id"] %>
<h2>MarkerDetail</h2>
<script language="javascript" type="text/javascript">
$(document).ready(function(){
$.ajax({
url:"/Marker/MarkerDetailPartial",
data:"",
success:function(result){
$("#ReplyDetails").html(result);
},
error:fun...
I'm trying to use a dummy TempDataProvider for some of my controllers.
The provider looks like this.
public class NullTempDataProvider : ITempDataProvider {
public IDictionary<string, object> LoadTempData(ControllerContext controllerContext) {
return new TempDataDictionary();
}
public void SaveTempData(Controller...
How can I create a "security aware" action link that detects if a user is authorized to click (invoke) the action?
Hide link if user is not allowed to use that action...
Depending from
web.config (authorization) and
[Authorize] attributes on actions
PS
I guess it is bad practice to mix those 2 in MVC?
...
Is there any ajax toolkit for asp.net MVC
...
I already posted a question closely related to the this one. I watched the Mix10 video with P. Haacked and S. Hanselman.
I am building an AJAX-powered site whose input forms are created on the fly.
All the code to accomplish this is done within a script tag or a javascript file. For example the following DOM elements are created when t...
I have recently started using Coldbox and Kohana frameworks in my projects, but cannot make my mind about a visual tool to document the project. I am using Visual Paradigm (UML) and yEd (free-form), but will be happy to try something else if it makes capturing MVC-like relationships among elements easier.
Any suggestion on visual tools ...
I'm pretty new to OO PHP, however i get how it all works and am ready to start building an MVC for a big site i'm working on. I know it isnt necessary written that you must do it like this but there's gotta be some normal practises....
class names - camelcase? underscores?
class files - same as class?
url/post/get controll name - rout...
i have looked into design patterns and mvc and understand the basics of it.
but i don't understand if these classes that these patterns are constituted of are library classes or model classes.
i'm using codeigniter and don't know if i should put the classes in models folder or libraries folder.
the classes could be:
observers and ob...
Hi,
I am developing a new application which have to write data to DVD. Is it possible to do with IMAPI2.
I read some help from MSDN but didnt get any startup material.
Can u provide some nice sample or link.
...
i'm going to create a library that consists of a lot of separate classes.
i'm very familiar with mvc but have never created a pure library before.
i wonder where i should put the business logic? the kind of logic that usually resides in a controller in a mvc.
should it be in a class or in a "bootstrap" file?
and should one file inclu...
Hopefully a simple question: I've a plugin which uses a set of tables (kb_items, kb_item_tags, etc). and I'd like to be able to access these models from another controller (say, my Pages controller), thus:
class PagesController extends AppController{
function knowledgebase(){
$items = $this->KbItem->findAll(...);
}
}
I am admitted...
I am writing web application using ASP.NET MVC + NHibernate + Postres stack. I wonder if images uploaded should be stored in database as binary blobs or on filesystem (and reference only in db).
One advantage of db storage I can think of is easy backup/recovery of all data without reverting to filesystem copy tools. On the other hand I ...
Hi guys,
We're building a PHP app based on Good old MVC (codeigniter framework) and have run into trouble with a massive chained action that consists of multiple model calls, that together is a part of a big transaction to the database.
We want to be able to do a list of actions and get a status report of each one back from the functio...
I have two models. Lets say they are "Posts" and "Comments". In an admin view for Posts, I want to display how many comments are on that post. I am confused on where to put the code. In the controller or the view? I would like it to be in the controller.
...