Questions tagged as 'mvc'

1
answer

Indicate form which method of the class to use

I have a form that will display the fields to be inserted in the bd, so far so good, the problem lies in the following: I have created a class (this file will receive several distinct requests) with methods add , edit , delete...
asked by 22.09.2015 / 19:51
0
answers

Rendering HTML with AJAX call using PHP and MVC concept

Good evening. I usually use the MVC (Model-View-Controller) standard, regardless of programming language. In PHP, the directory structure looks like this: - assets - css - js - img - font - model - controller - view - ses...
asked by 18.07.2015 / 02:55
1
answer

When logging form_validation is not valid as expected

I'm starting with codeigniter, but I'm having a problem: By logging in, it does not come out of the wrong password and email if. The form fields are correct and the database is. Can you help me? This is the controller: <?php defined('...
asked by 01.09.2015 / 22:59
0
answers

Declaring and displaying variables in Model MVC

I'm using the MVC standard, and I need to declare the value of a variable inside the model file and I ended up doing this: public $user_id = null; public $user_name = ""; public $user_email = ""; public $user_is_logged_in = false; public func...
asked by 09.07.2015 / 19:40
0
answers

Tips for upgrading JSE application to J2EE

I have not worked with Java for more than three years, I have worked with PHP, learned and liked it a lot. In my opinion, all two languages have many legal advantages to be incorporated into the other. A few years ago I developed a JSE projec...
asked by 14.05.2015 / 03:02
1
answer

How to get an Array on all view pages

I have a view that is called by a master page , the problem is that I pass a array and the second page called, but the data does not arrive as expected. ex. //controller index class Index{ public function index(){ $data = arra...
asked by 11.07.2014 / 14:58
3
answers

Ajax problems in PHP MVC project

I'm having trouble using ajax with html. I have an html file that answers questions from a chat and I put the ajax below ajax. It redirects to the controller questions and the answer method. The request status is 200, but nothing happens. I h...
asked by 05.07.2018 / 02:28
2
answers

How to retrieve address ID?

I'm using asp.mvc. In my route has the ID, the address of the page for example has link . I wanted to get this number 1 at the bottom of the page, is there any way to do that?     
asked by 08.07.2018 / 04:50
1
answer

What is the reason for Trying to get property of non-object in?

I'm trying to return bank data using this code: //avoid Undefined variable $errors = []; if (Input::exists('post')) { $validate = new Validate; $validation = $validate->check($_POST, array( 'username' => array(...
asked by 12.05.2016 / 20:56
2
answers

How to refresh a bootstrap table after giving update?

Next in the lines of my bootstrap table when I click opens a modal where I can change the selected information after click. I wanted that right after I clicked the button to change, my table (and only it) would update without needi...
asked by 01.12.2016 / 15:09