Questions tagged as 'controller'

1
answer

Functions - Model, Controller

In my model I have this function that defines the format of the url: public function url_format_category($category, $lang_domin) { if (lang('abbr') == 'en_US') $lang_domin = 'en/'; else if (lang('abbr') == 'es_US') $la...
asked by 08.04.2015 / 20:18
2
answers

Call a controller action for the views

I'm using Yii2 and doing a site project where one of the features is to list the movies bound to a specific user. I already have a method to associate the movies with the accounts and one that does the inner join of the tables. (Actions Code)...
asked by 15.12.2017 / 18:03
1
answer

Note system [params]

I'm creating a note system with clients, projects, activities, professional and pointing, all parts pass and save correctly, less the part of note posting. Follows the error image while trying to point it out. Followthenew.html.erbcode &...
asked by 30.10.2017 / 04:41
1
answer

Group items in table application asp.net web MVC

How can I group items in a table? I am bringing these items from the database, I would like to group by the code of the same, for example, if there is repeated code 1 would like to group it into a single item. This is the controller class. This...
asked by 03.12.2017 / 15:27
1
answer

Pass information between two PHP pages

Good afternoon! I'm having the following problem: I have a php page named locality that has the fields "name" and "city". In the name field, I type the name of the locality, such as "Beautiful Corner", and in the city field I retrieve from a t...
asked by 23.10.2017 / 19:12
1
answer

Conversion error when sending input to controller to save

Good evening, I'm having trouble solving this problem, I hope you can help me ... When trying to save data from View only one field returns this error:    Failed to convert property value of type java.lang.String to required   type com.sisdco...
asked by 03.08.2018 / 02:16
1
answer

Customizing Json consumption - Web API

I have the following information in Json: [ { "$id": "1", "Cditemcontacli": 1.0, "Cdcontacli": 1.0, "Descricao": "Produto 1" }, { "$id": "2", "Cditemcontacli": 2.0, "Cdcontacli": 2.0, "Descricao": "Produto...
asked by 22.09.2015 / 20:27
3
answers

Send a ListT with several items to the controller

Well, I'm facing the following problem in a project I'm working on: how to pass a list (List) with approx. 500 ~ 1000 lines from the View to the Controller? In fact, this list has a field called "Selected (bool)" from which the user selects o...
asked by 03.05.2016 / 19:59
1
answer

How does communication between classes work from client / user requests in MVC? [closed]

Good afternoon, I'm creating my MVC framework to better understand how this structure works and what can or can not be done inside it. His structure is set up like this: FromwhatIunderstandsofarfromMVCIthinkit'sanormaldiagram,butanyonewhowan...
asked by 15.04.2017 / 22:26
2
answers

Json Method - Return

I am developing a return of zip codes through the Post API, the part that is in the controller is working, but I do not know if the return is correct, nor how to use it in the view. If anyone can give me a Light I'm grateful. Controller:...
asked by 18.11.2016 / 03:21