I also tried this: $this-Promotion-title_id = $current['Promotion']
['title_id'];
But it did not work either...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
Absolutely:
Here is the action: http://bin.cakephp.org/view/994290013
Here is the view: http://bin.cakephp.org/view/1805109334
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this
Hey, thanks for helping with this. Here is my model:
http://bin.cakephp.org/view/1912370055
I thought it seemed backwards but users here said it made sense and
that's what bake gave me so I stopped questioning it. Basically, I
have listings, categories and promotions that all have titles and
As a follow up - I ended up making a mysql view table with a UNION
join to include the content from all the tables I wanted to search.
Then I just searched that table.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hey,
It worked perfectly. I appreciate your help grigri!!!
Here is what I used:
var $paginate = array('Project' = array('conditions' = '','order'
= '','limit' = 15));
function index()
{
// Sort Randomly Start
if
This rocks! I'll try it out.
Thanks!!!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
Ok. Thank you.
On Mar 9, 12:22 am, Miles J mileswjohn...@gmail.com wrote:
You can not go that deep into the array. Only the 1st and 2nd tiers
work.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To
That seems to work but how do I get it to make a new id in the
location table? In 'Location.0.name' I think it's trying to insert it
into id '0'.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post
Thanks for your help. From your example I was able to find this page:
http://book.cakephp.org/view/84/Saving-Related-Model-Data-hasOne-hasMany-belongsTo
which I never noticed before for some reason. It was helpful too but
the validation always gives an error but I can fix that another time.
That's how I initially set up the tables but when I baked it the bake
defaults reversed everything - so all my edit views would give me a
drop down list of location id's. It used belongsTo in the main tables
and then hasOne and hasMany in the location table.
So what should I use in the model?
I guess that makes sense.
What I need is that input to add a new location. Is there a way to do
that? I tried Location.location (instead of location_id) but it
doesn't work.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
11 matches
Mail list logo