Hi Wayne and others,
Do you get a successful working code , if so pls tell the idea ?
I have 1 doubt to you why we need to use Model in this case , do we can
Tackle this in Controller itself ?
I am newbie , reply me
Thanks
Anes
On Mon, Aug 20, 2012 at 3:53 PM, WayneW waynewhi...@hotmail.com
Beginner here. I have a model class called Route and I've been struggling
to find documentation / tutorials on how to use a model that isn't based on
an underlying db table. At the moment, my model has the following
attributes (note that useTable is set to false):
//this model does NOT use a
try
$route1 = App::import('Model', 'Route');
$route2 = App::import('Model', 'Route');
$route1-id = 2;
$route2-id = 1;
On Monday, August 20, 2012 5:23:36 AM UTC-5, WayneW wrote:
Beginner here. I have a model class called Route and I've been
struggling to find documentation / tutorials on
Hello friends,
you can use below ideas,
App::import('Model', 'Route');
$route1 = new Route();
$route2 = new Route();
--
Thanks Regards
Chetan Patel
--
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
Thanks for correcting - I'm operating at 50% on Mondays.
On Monday, August 20, 2012 11:43:55 AM UTC-5, Chetan Patel wrote:
Hello friends,
you can use below ideas,
App::import('Model', 'Route');
$route1 = new Route();
$route2 = new Route();
--
Thanks Regards
Chetan Patel
--
Thanks for the help.
You know, I read that section so many times, but couldn't figure out how to
make it work right. Then I tried it using scaffolding and it works
perfectly. So, now I have to figure out how to do the same without
scaffolding.
--
Our newest site for the community: CakePHP
Hi folks,
I imagine a good search would help me find the answer to my problem,
but unfortunately, I don't know the words to use to describe my
problem. So, I'll describe it here and seek either the terminology I
need to learn more or possibly the solution.
I'm completely new to CakePHP but
Hi,
I think you should specify the relation in the `job_title` model
http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html#hasone
Then the find() method should return you the related values as
associative arrays.
To adapt normalize the results, eg. a single array,
I'm having a little trouble setting up my models properly so that I
retrieve my data. This really wasn't an issue until I started messing
around with the paginate helper.
I have two tables:
hits: col1|col2|col3|item_id
items: id|title
How do I set up my models so that I can sort by popularity
Hello Matth,
ever looked here?
http://book.cakephp.org/complete/164/Pagination
Best Regards,
Oliver
matth schrieb:
I'm having a little trouble setting up my models properly so that I
retrieve my data. This really wasn't an issue until I started messing
around with the paginate helper.
Paginate will not automatically do a count of hit records for you ...
but if you add a hit_count field to your ItemModel table and then add
counterCache to your HitModel belongsTo association Cake will keep a
count of hits upon creation and deletion of a HitModel record and you
will then be able
Hey cakers,
Let me paint a picture for you all. I have 3 different cakephp
projects. They all need to use the same basic user functionality. I
have a user controller and model already coded up form an old project
that work really well. Can I use this in a new cake project keeping it
independent
Yes, you can create a plugin or use a separate location for those
models and controllers and add them to the path list of cake in
app/config/botstrap.php. This was discussed in this group before and
also there are some blog entries about the subject, so feel free to
use your preferred search
13 matches
Mail list logo