Questions tagged as 'mvc'

1
answer

filter table asp.net mvc [closed]

I need to filter a table, which is in a partial view, depending on the parameter entered in a field, which is passed to the controller via ajax. How do I reload the table with the filter applied? Part of the index where this my partial <...
asked by 31.10.2016 / 17:01
1
answer

How to use form validation in the model (MVC)?

I need to use MVC on the system and I want to know if the validations in the file.php with $ _SESSION ['token'] must be in UserModel. Who can help ... I do not handle much cadastro.php <?php $sessao = 'cadastro'; session_name($...
asked by 26.12.2016 / 02:35
1
answer

NullPointer Exception during registration using the MVC standard

I have a ready-made application that was created procedurally, but for learning purposes I decided to reprogram it using object orientation and the MVC pattern. While registering for a publisher, I'm getting the error NullPointerException...
asked by 25.10.2015 / 02:22
1
answer

Show validation error in View

I have a problem, I can not show the form validation error in View (MVC done by me) correctly, it is showing in the wrong place, I would like it to stay on top of the button or down. Model: <?php class Login_Model extends Model { p...
asked by 29.02.2016 / 02:32
2
answers

Popular table using Json

I'm having trouble populating a table in my code cshtml . I'm new to ajax and I'm not fully understanding what I need to do with the data that came from the bank. Here is my code: Code cshtml : <div><table id="data...
asked by 18.09.2015 / 20:08
1
answer

Laravel and the MVC concept - where do I put my classes / functions?

Hello. I am new to Laravel and MVC architecture and have a conceptual doubt. In my bank I have a code (string), for example "[paragrafo]". I'm going to turn this string into " < p>meu paragrafo< /p> " to be displayed in the...
asked by 01.07.2015 / 16:20
1
answer

MVC - Intermediate php file in View and Controller relationship

Hello everyone. I was reflecting on the existence of a structure relationship step in my project. The organization of my project is as follows: [1]Whenaccessingthepage,theusercanaccesseitherthenormaladdress(egcurso.php)orparameters(egcurs...
asked by 05.01.2019 / 16:36
1
answer

Sending Records for a New View

I created a new action knowledges in my controller responsabilities and created a view called nested_knowledges . I made the action render this view. I put the following code in this view: <%= form_tag edit_responsab...
asked by 03.06.2014 / 17:02
1
answer

Text field does not take value asp.net MVC

I have a text field in my system called NomeEspecificacao , but when I fill in any value in it, it is always returned null in my Action, that is, the word that I write in the text field never comes. View Code: model SEMA.Fiscalizacao....
asked by 13.11.2018 / 15:57
2
answers

Check if a user registered at the bank has cpf already registered

Hello, I have to check in the database if a logged in user already has cpf registered and return whether it is false or not. I use the codeigniter in the application. I'll send the codes. CONTROLLER: public function check_cpf_doctor() { $c...
asked by 01.12.2018 / 23:28