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...
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)...
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
&...
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...
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...
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...
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...
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...
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...
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:...