Questions tagged [model]

Part of the MVC pattern, the Model manages the behaviour and data of the application.

Filter by
Sorted by
Tagged with
-4 votes
1 answer
157 views

Change img url in css file

.def_img {background-image:url(../img/def_bg.jpg);} this code in my theme.css file. I want to change this code with c#. like this; .def_img {background-image:url(../@Model.Url);} How can I change ...
user3655399's user avatar
-4 votes
1 answer
36 views

cakephp displaying associated model data

i really need help with this for my school project. i am new to cakephp and trying to develop a school management application.i have a students table with admission number and a guarduins table with a ...
Gordon's user avatar
  • 57
-4 votes
1 answer
131 views

Difference between an entity and model - in mvc

Could someone please explain the core difference between an entity and model in mvc, this does not include view models.
user3599231's user avatar
-4 votes
1 answer
798 views

FBX model's faces (some) are not rendering properly

I've created a basic sphere in Maya and loaded it into my OpenGL project. The problem I'm having is shown below: As you can see, the sphere is triangulated. But when the model is loaded into my ...
user avatar
-4 votes
1 answer
60 views

Question about 3 types of model in Anylogic [closed]

I know there are three main types of models in Anylogic: ABM, DES and SD. I would like to know what these three types of models have in common (or Similarities)? And what are their main differences? ...
feiqideansha's user avatar
-4 votes
1 answer
164 views

Null Pointer Exception in getting Phone number from firebasedatabase through model class [duplicate]

I am trying to login with phone number and password but to get the phone number from firebase database through model class is giving a null pointer exception. Please Help I have already tried to get ...
Sayed Nazir Shah's user avatar
-4 votes
1 answer
808 views

How to add comment model in flask

users model class User(db.Model): __tablename__ = "users" id = db.Column('user_id',db.Integer , primary_key=True) username = db.Column('username', db.String(20), unique=True , index=True) ...
user3891081's user avatar
-4 votes
2 answers
4k views

Passing data with "putExtra" in Recyclerview

I want to pass some details data from my model to another activity using class recyclerview adapter. Adapters's code: public class Tab1RecyclerAdapter extends RecyclerView.Adapter<...
KurteevRus's user avatar
-4 votes
1 answer
210 views

Rails: How to plan models and datebase?

Im pretty new to rails and I tried finding for an answer using rails with postgresql but maybe I am thinking it wrong or searching at the wrong places. So here goes Lets say I want to do an app that ...
DGJH's user avatar
  • 5
-4 votes
2 answers
51 views

I want a query result using codeigniter

i have an array result. i want to print 2 rows(product data) in first page. next 2 rows in second page and so on. if anybody knows this,please help me to solve it my array $data['product_list'] ...
user6413618's user avatar
-4 votes
1 answer
2k views

Fatal error: Uncaught exception 'Phalcon\Mvc\Model\Exception' with message 'Syntax error, unexpected token >,

Fatal error: Uncaught exception 'Phalcon\Mvc\Model\Exception' with message 'Syntax error, unexpected token >, near to ' LIMIT :APL0:', when parsing: SELECT [Multiple\Backend\Models\urunler].* FROM ...
Phalconphp's user avatar
-4 votes
1 answer
210 views

Qml not update button after model change

Project and code here https://github.com/neochapay/radon look on: pages/PlaylistPage.qml in 21 line - call model and set played track. Go in to model: src/model/playlistmodel.cpp look on 80 ...
neochapay's user avatar
-4 votes
1 answer
49 views

I want to see the product_name. Error is - Property [product_name] does not exist on this collection instance. (abc.blade.php)

@foreach ($alldata as $value) <ul class="nav nav-tabs" role="tablist"> <li role="presentation" class="active"><a href="#tab_1" aria-...
Monika jain's user avatar
-5 votes
3 answers
93 views

Syntax error in Rails User Model?

I am getting this error in rails console when trying to create new User: models/user.rb:32: syntax error, unexpected tSTRING_DEND, expecting ')' ..."#{Time.now.utc}--#{password}"})if self....
user1780064's user avatar
-5 votes
2 answers
66 views

How to set a value of a class

I have a simple Class with a inner class. I want to set the following: users[0][user_id]=8 users[1][user_id]=25 This is class: public class ChatRequest { private List<Userbean> users; ...
ARR.s's user avatar
  • 769
-5 votes
1 answer
1k views

how to get form $request all data in Laravel Model

This is learning purpose question. I have a form and after submit the form i want to catch this form all request data into the model. so how to do this? thanks.
mahbub's user avatar
  • 163
-5 votes
1 answer
60 views

How do I stop circular "followers" in a model?

Basically, I have a table with two columns, a follower and a followed. If a user1 follows user2, I need to make sure user2 cannot follow user1. What do I write in the model to validate that? I have a ...
John's user avatar
  • 31
-5 votes
2 answers
4k views

Method Illuminate\Database\Eloquent\Collection::with does not exist [closed]

What could be the solution? Thanks in advance!
Molla's user avatar
  • 13
-5 votes
2 answers
74 views

Json array to json php

I have the following json. the retailer_info property is array of 1 element. { "data": { "user": { "id": 18626, "first_name": "Sip", "last_name": "Gemmayzeh", "...
Garine's user avatar
  • 584
-5 votes
1 answer
13k views

Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) or const (T_CONST) in laravel 5.4 and it's not duplicated [duplicate]

So, guys, this is the error I am getting in my project. Parse error: syntax error, unexpected end of the file, expecting function (T_FUNCTION) or const (T_CONST) https://i.stack.imgur.com/n2Tf0.jpg ...
Dheeraj Sharma's user avatar
-6 votes
1 answer
79 views

Rails ActiveRecord methods in different places [closed]

I want to use activerecord methods in different places for example if ..something.. Post.where(..something..) else Post.where(..something..) end @posts = Post.all(:order => ..something..) ...
Nick Sanders's user avatar
-6 votes
1 answer
99 views

x == y ? "1" : "5" How to use?

can someone help me with this code. i really dont know how to do this, also, i came up with this code, but it does not return the expected result. <label><%: Html.RadioButtonFor(model => ...
Alexis Abulencia Villar's user avatar
-6 votes
1 answer
87 views

How to create a model that implemest parcelable

My response is like below "data":[ { "title": "hbdv", "description" : [ "a", "b", "c" ] }, { "title": "bdvv", "description": [ ...
UserAT152's user avatar
-8 votes
1 answer
710 views

How to set JSONArray in model class?

How can I set JSON array to model class? I am trying to add but its giving error.Can anyone help me to so offerlines = new ArrayList < Offerlinemodel > (); Offertextlistmodel olms = new ...
chris's user avatar
  • 729

1
426 427 428 429
430