Questions tagged as 'mvc'

1
answer

Save visitors email (Newsletter) with codeigniter

Good morning, I'm a beginner in PHP and codeigniter. I need a light, until I found what I need but not in codeigniter (because my site is in mvc). This was found and worked on my localhost link , but I have no way to use it after all it does...
asked by 27.06.2016 / 15:01
1
answer

Connectionstring according to scenario

Hello, good morning! I have a project where there are two scenarios, which is homologation and production. In this same project I created two connectionstrings , setting one for each scenario. In the system these scenarios are divide...
asked by 26.02.2016 / 13:42
1
answer

Value and ID in the DropDown Cascade

Reference that can help you understand the code. DropDown Waterfall This part here I pass the values that will be added in the second DropDown var classesList = this.GetClasses(Convert.ToInt32(CanalMassivo)); var classesData = clas...
asked by 30.11.2015 / 12:24
2
answers

How to call a method into an If and Else?

I'm developing software for an MVC (Model-view-controller) design video store and the problem is not calling the save () method and the change () method inside the If and Else on the Save button. If the typocadastro variable is "new" it saves an...
asked by 05.11.2015 / 20:23
2
answers

Template, relationship with DataAnnotations

If I have a Customers entity public class Cliente { public int ClienteId { get; set; } public string Email { get; set; } public string Nome { get; set; } } If I create a Boleto entity public class Boleto {...
asked by 03.02.2016 / 16:07
1
answer

How to pass objects between controllers in the MVC using OOP

Basically, I need to be a successful login to save the username in a variable and use it on another controller. Model.php: public function login($email, $password) { session_start(); $sql = "SELECT * FROM users WHERE email = :em...
asked by 09.05.2015 / 01:46
1
answer

MVC - Doubt about controller and view PHP

I'm studying MVC a few days ago and I came across a question, I need a view to do registration, but this view would not do anything just send the data to my doubt is that I need a control just to put this view and another to register it?     
asked by 14.06.2015 / 23:11
1
answer

My JavaScript / AJAX function is not converting Date to the correct format

Hello I have a problem with an MVC project. My View needs to return values in Date for some Text Boxes (from the selection of the record by a Data Table) so that the user can edit the record. The problem is that the data is not being shown...
asked by 12.07.2018 / 14:57
1
answer

ASP.NET MVC after updating the packages does the default template get lost?

I'm new to this area, I'm "walking barefoot on the rocks" to learn ASP.NET, I use the VISUAL STUDIO 2017 Community 2017 Version 15.8.4. When creating a new ASP.NET MVC project visual studio generates an empty application with a menu. When up...
asked by 12.09.2018 / 19:15
1
answer

What is the correct way to do the template in Django / python?

This has been my first contact with the framework and with mvc / mvt, and I am in doubt, in terms of good practices and tals, should I make a template for each of the views or should I just make a template and change the template content dynamic...
asked by 16.03.2018 / 18:14