Questions tagged as 'mvc'

2
answers

How to use "include / require" in CodeIgniter in the right way?

I'm migrating from PHP to CodeIgniter , and would like to know how to use include or require right in my code?     
asked by 04.03.2017 / 05:03
1
answer

Crypto of url

I have a SendEmail method which generates a link through HTTP request, which will send to the user's email for exchange. However for tests I fixed the user ID in this URL, but for security reasons I have to encrypt it. How do I do this? Fol...
asked by 26.01.2018 / 17:23
1
answer

Passing Parameters to Store Procedure

Follow the Search Function Code public List<Pessoa> Buscar(string Nome) { using(var db = new MyContext()) { var Result = db.Database.SqlQuery<Pessoa>("EXEC SP_Busca_Cliente @Nome", Nome).ToList(); return Re...
asked by 02.10.2017 / 15:17
2
answers

how to work with PartialView

I have the People Registry, and I have the Address Book, which are in two separate classes, because the goal is that the user can have 2 or more addresses, such as delivery, and billing. So I wanted to know how to use PartialView. in the case I...
asked by 17.11.2016 / 12:07
2
answers

Validation of MVC forms - PHP

To validate forms with MVC concepts, would it have to be in Controller , Model , or View ? Searching the internet I saw some articles on the subject, but some recommend doing in model others in view , the final, in> view ? This method do...
asked by 18.02.2016 / 02:37
1
answer

Laravel - Return HTML or JSON in same Method

I'm starting with Laravel, seeing from the rails, where to return a JSON I simply put .json in the url, obviously the return handling is on the Controller. My question is how to do something like Laravel. I would like, instead of creating a m...
asked by 13.03.2016 / 21:21
1
answer

How to implement the MVC standard in PHP

I'm a novice programmer and I'm having a hard time putting together my MVC framework. When I say structure I mean how to develop a model.php a view.php and a controller.php, in short what code to develop to connect them, make them interact with...
asked by 12.05.2015 / 17:25
1
answer

Can the controller send email?

In a controller called activities, I have a method called reminder. This method, receives an id, searches for that activity based on this id and sends an email to the moderator of that activity with data of the same. Is this method with 'too muc...
asked by 06.12.2014 / 20:05
2
answers

Multi Language ASP.NET MVC

I have an ASP.NET MVC application. And you need to make it multi-language, using a database. I thought of two approaches: Livro Titulo Subtitulo Idioma OR Livro Titulo TituloEN Subtitulo SubtituloE...
asked by 23.07.2014 / 14:55
1
answer

Return javascript result with controller

Is it possible inside a Controller, to return a javascript action and proceed with the controller script? Example: Call to Login page: <li><a href="javascript:" link="{{ route('login') }}" class="popup">logar</a></...
asked by 07.02.2014 / 15:07