Web Frameworks

A web application framework (WAF) is a software framework that is designed to support the development of dynamic websites, web applications, web services and web resources. The framework aims to alleviate the overhead associated with common activities performed in web development. Most common web application frameworks are defined by specific subsets, including ASP.NET, JaveEE, Symfony, ColdFusion Language (CFML), Laravel, jQuery and AngularJS, or for the related languages, including .NET, PHP, JavaScript, Java, Perl, Python, Ruby, C++ and C.

Share tech news, updates, or what's on your mind.

Sign up to Post

So on this page I have the ability to clone multiple inputs depending on how many flights a user has:

http://groupplanner.gallitin.com/flight/create?tripID=22&tripName=ABC&depart=07%2F20%2F2017&return=08%2F05%2F2017

When I try to submit that of course it bombs as originally it was not an array and only allowed a single input.

Current code:
public function store(Request $request){

        $flight = new Flight;
        $flight->airline = request('airline');
        $flight->flightNumber = request('flightNumber');
        $flight->departing = date('Y-m-d H:i:s', strtotime(request('departing')));
        $flight->seatNumber = request('seatNumber');
        $flight->tripID = request('tripID');
        $flight->userID = Auth::id();
        $flight->save();
        $tripID = request('tripID');
        $tripName = request('tripName');

        return redirect()->route('flight', ['tripID' => $tripID,'tripName' => $tripName]);

    }

Open in new window


How can I modify this since I now have the data coming across as an array?  Is it just a normal foreach loop like I would do in PHP or is there a better/easier method to do with Laravel and Eloquent?
0
Get 15 Days FREE Full-Featured Trial
LVL 1
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

What exactly is the difference between a Web Framework, Web Server vs Javascript Frameworks?
0
I know how I can get the data needed, but want to follow Laravel/MVC practices here and new to it.

I have a page that stores data that a user sends through a form.  Once they submit they are redirected to a new page that I'd like to display some of the data back to them.

For example, currently any data I want to display I'm just passing in the URL.
$trip = new Trip;
        $trip->tripName = request('tripName');
        $trip->departing = date('Y-m-d H:i:s', strtotime(request('departing')));
        $trip->returning = date('Y-m-d H:i:s', strtotime(request('returning')));
        $trip->save();
        $tripID = $trip->id;
        $tripName = request('tripName');

        return redirect()->route('flight', ['tripID' => $tripID,'tripName' => $tripName]);

Open in new window


Then within the view I just:
{{ $_GET['tripName'] }}

Open in new window


Is that how I should be doing it?  Or when they hit the new view is there an easy way to grab that data with a DB call?  If so should this be done in the view or do I need to serve somehow from the controller?

Thanks
0
we have web application, it is currently supported IP4.it is developed with Spring mvc.
now i want to support IPV6.. how could be the changes.. and how it will effect.
0
I have a model structure that lets the user define a page.

The code below shows a subset of it, and while I'm having no problem displaying the form with the formsets, I'm having trouble saving it, and then displaying it again.

Models.py

class Entity(models.Model):
    title       = models.CharField(max_length=50)

class ValueDefinition(models.Model):
    title       = models.CharField(max_length=50)   
    entity      = models.ForeignKey("Entity", null=True)
    order       = models.PositiveSmallIntegerField(default=0)

class Value(models.Model):
    value_definition    = models.ForeignKey("ValueDefinition")
    is_default          = models.BooleanField(default=False)  
    value_type          = models.CharField(max_length=50)
    char_value          = models.CharField(max_length=200, null=True, blank=True)
    integer_value       = models.IntegerField(null=True, blank=True)
    boolean_value       = models.BooleanField()

Open in new window


As you can see I have: Entity -> ValueDef -> Value. With Foreign Keys upstream. Obviously I took out many more fields and left in the fields that will let you get the idea.

Problem is: I want to display, as a form, a series of entities, and their related Values. Of course the whole page is much more complex, but here is the relevant piece of code of the View:

Views.py:

def my_view(request, page)

    # some more code here...

    ValueInlineFormSet = inlineformset_factory(ValueDefinition, Value, ValueForm, extra=0)

    for entity in page.entities:
        vdef = entity.valuedefinition_set.first()
        if vdef:
            prefix = 'value_set-%s' % entity.pk
            if request.method == 'POST':
                formset = ValueInlineFormSet(request.POST, instance=vdef, prefix = prefix)
                if formset.is_valid():
                    formset.save()
            else:
                formset = ValueInlineFormSet(instance=vdef, prefix = prefix)

            entity.values_formset = formset

    return render(request, 'myapp/page.html', {'page': page})

Open in new window

0
If I'm not mistaken we have a symbol and a hash but still I don't get why we have this syntax can you elaborate me or guide me what to read?
class Tweet < ActiveRecord::Base
  has_one :location, foreign_key: :tweeter_id, dependent: :destroy
end

Open in new window

Thanks
0
Hello,

I created a navbar menu where you click on profile and you get to profile based on your username, example, if your username is: Anderson. when you click on profile, it takes you to web.app/anderson

but the issue is this, when I log in, laravel show me a link of : http://web.app/respond.min.js that takes me to profile page instead of http://web.app/home home page

That happens because of this route:

 
Route::get('{username}', 'ProfileController@index');

Open in new window


When i change the {username} to 'profile', everything works normal but it doesn't achieve my needs which is to redirect to http://site/username

any idea, did i make any mistake in the syntax?
0
I have a Spring Roo application.  I created a Spring MVC controller that calls a view.  The view is trying to call an applet that is trying to invoke a dll.  I keep getting an error "UnsatisfiedLinkError: Library 'jnidispatch' was not found by class loader Applet2ClassLoader{<locations where it should be able to find the dll, but can't seem to find it.  ie http://localhost:8080/FPM/applet/>} What am I doing wrong that I can't call the jnidispatch.dll?
0
I am getting an error while trying do a url rewrite job...the situation is like this. Theres is a url say abc.com needs to be converted to abc.com &locationCode=/uk. So what I did the location code is been retrived from database so I wrote a code in asp.net and the abc.com route to intermediate service I wrote i.e xyz.com(asp.net application) and add the location with abc.com and send back to client.

now it works ok with IE but when I use crome then giving the error (scriptresource.axd 404 ) while I fire the url abc.com in chrome browser after clearing the cache but after that it works even in crome but for the first time after clear the cache it is throwing the error and holds the url to xyz.com in browser not redirecting to abc.com  OR abc.com &locationCode=/uk
0

Web Frameworks

A web application framework (WAF) is a software framework that is designed to support the development of dynamic websites, web applications, web services and web resources. The framework aims to alleviate the overhead associated with common activities performed in web development. Most common web application frameworks are defined by specific subsets, including ASP.NET, JaveEE, Symfony, ColdFusion Language (CFML), Laravel, jQuery and AngularJS, or for the related languages, including .NET, PHP, JavaScript, Java, Perl, Python, Ruby, C++ and C.

Top Experts In
Web Frameworks
<
Monthly
>