Questions tagged as 'mvc'

0
answers

autoload in classes - php

It is a scheme that I am inventing since in this project I will not go by framework because it is very simple, Working with MVC in the Framework (Codeigniter), But I do not have a separate Model class with load (only as a file), it's alway...
asked by 16.04.2016 / 00:28
1
answer

What is the best way to do calculation between attributes of a model, to display in the view?

I'm currently calculating everything in the view, something close to the below: {{{ $object->a + ($object->b==1?5:10) + $object->c * (int)object->d... But it does not seem like a good idea. I do not want to save the calculated...
asked by 12.04.2016 / 07:47
1
answer

MVC connection, which one use MSQLi or PDO? [duplicate]

I'm starting to program a PHP MVC, what kind of connection is most recommended: MSQLi or PDO and why?     
asked by 14.03.2016 / 21:16
1
answer

where to mount the table in an MVC PHP project with ajax?

Within the model I have a series of discussions to show the final result. //CONTROLLER public function index(){ $this->view->render("views/index.php"); } public function read(){ $data = array(); $data['id'] = $_POST['id'...
asked by 04.03.2016 / 01:24
1
answer

ASP.NET MVC dynamic menu

I'm new to MVC and need to make a dynamic menu, but I do not think the solution (web forms was easier rs). I have 3 models (Menu, SubMenu1 and SubMenu2) I need to go through these objects and go mounting the html in the view, but the typed view...
asked by 03.02.2016 / 18:17
2
answers

ASP.NET MVC with FormsAuthentication

I have an Asp.net MVC application with FormsAuthentication, but the need arose to release a page to the site visitor or a page is released to everyone and the rest of the controllers falls on the login screen, is it possible? / p>     
asked by 17.02.2016 / 11:55
1
answer

How to create an instance of a Prestashop module inside a controller?

I would like to create an instance within the control of a given module in order to validate it in the Prestashop authenticator pattern: I'm using the Prestashop version: 1.6.1.3 Authentication Control Path: project/override/controlle...
asked by 05.02.2016 / 17:58
0
answers

Error returning object after query

Good night everyone. Objective: The main goal is to get the user ID and the code of the simulation he answered, and display this on another screen after he responds to this simulation, however, I have exception when trying to perform a query...
asked by 07.11.2015 / 02:38
1
answer

SqlUpdate does not change data in the database [duplicate]

Note: Many people could not solve this question and they marked my question as wrongly duplicated because of an answer in another question similar to this but the answer does not help me at all . > I'm developing software for a MVC (Model-v...
asked by 27.10.2015 / 19:43
0
answers

PHP using MVC

I'm creating a PHP application (without frameworks) using MVC, but I have a lot of doubts, because until today I only used Symfony to make PHP applications. I have questions about urls routing and use of functions. Here's an example of how my pr...
asked by 26.08.2015 / 16:42