Questions tagged as 'mvc'

2
answers

How to send form_tag variables to javascript function? Rails

I'm new to web programming and rails and I have the following question: I have a view that displays a list of foods and a field to fill with the amount of grams I want from each food. I would like to display a text_field_tag for each e...
asked by 27.11.2016 / 06:23
0
answers

What is the ideal model for creating classes that involve the database? [closed]

I have a very strong question about what is the best way to create classes to "interact" with the database (in PHP, in that case). For example: I need very specific validations of each table to be executed before registering something in the...
asked by 08.10.2016 / 05:05
0
answers

Doubt in class diagram [closed]

What steps to create a class diagram of a project done with Django? How can I represent MVC in the diagram? My project has only one Post class: from django.db import models from django.utils import timezone class Post(models.Model): autho...
asked by 10.06.2016 / 15:24
1
answer

How to make a chart grouped between bars and rows with google chart and export to pdf (C #, MVC) [closed]

It would look something like the image below: Vlw galera     
asked by 05.04.2016 / 14:37
1
answer

MVC representation in UML class diagram

I'm building the class diagram of my project and I was left with a question at one point. In the project I create an instance of my Controller class in main and step reference (I know that in Java the pass is always by value, but when we pass th...
asked by 16.12.2015 / 00:11
0
answers

What is the best way to replace a specific Web Api method for MVC architecture? [closed]

What would be the best way to replace the following Sys.WebForms.PageRequestManager.getInstance().add_endRequest() method done in WebForm for MVC structure? Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler)...
asked by 12.01.2016 / 20:55
1
answer

Escape "/" with htaccess and / or php

I have a small MVC made by me. With urls Of this type index.php?route=admin/produto/adicionar , but I wanted to remove index.php?route= , I already got a line of .htaccess that was thus www.exemplo.com/admin/produto/adicion...
asked by 02.11.2015 / 18:38
0
answers

String conversion to BigDecimal is giving error and method does not save [closed]

I'm making a video system and on my category screen a field called value to save the value of my category. I was able to do the conversion from String to BigDecimal using the following methods: ToString, DecimalFormat, StringBigInteger, valueof,...
asked by 21.09.2015 / 15:27
1
answer

Aggregation of data in PHP and MVC development

Good morning! I am developing a web system and am having doubts about the organization as an MVC framework. There is a business register that already has class / model / control etc. My question concerns the addresses of a company (which is a...
asked by 09.09.2015 / 17:01
1
answer

I can not update a field in CakePHP with $ this-Model-saveField ()

I can not update a particular field in CakePHP. When you run $this->OrdemServico->saveField() , it simply does not execute. Code: class OrdemServico extends AppModel { public $name = "OrdemServico"; public $useTable...
asked by 03.08.2015 / 21:56