Re: Model help

2010-03-19 Thread WebbedIT
Jeremy's advice is sound :o) Just thought I would add a very simple, but useful note. If you have got to the point where you have pulled some data from the system and don't know what to do with it then you probably need to familiarise yourself with how Cake returns that data to you. So in your vi

Re: Model help

2010-03-17 Thread Jeremy Burns
The secret lies in setting up your models correctly. You also will find life easier if you use the field name 'name' instead of 'label'. Doing this means that you can easily create drop downs populated with 'id' and 'name' where 'name' is the displayed value. This is the default Cake convention.

Model help

2010-03-17 Thread Andrew
Hello, Thank you for your time, I am a new user of CakePHP. I recently found CakePHP and am still trying to get used to the MVC architecture. (By the way, it's brilliant). However I'm still getting used to reformatting my SQL into cakephp. My question is as follows. I have an SQL statement that (

Re: Beginner Model help!

2007-11-29 Thread Lauwens
Seems not... as my problem was the Oracle after all!! Installed a Mysql test db to test it all out and worked flawlessly, so i know the oci file had to be the root of my problem! Changed the dbo driver to the one included in the 1.2-pre-beta ... Poof error's gone! On Nov 29, 4:51 am, powtac <[E

Re: Beginner Model help!

2007-11-28 Thread powtac
Seems the same problem here http://groups.google.com/group/cake-php/browse_thread/thread/3a377be8dfe0de64/43185d3a9b42a7a3 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send

Beginner Modelhelp!

2007-11-28 Thread Lauwens
This is my first try with CakePHP and seem to run in a lot of problems I am (trying at least) making a full weblog system... so far I have modeld and created a login system on a user class... works perfectly and really fast written thanks to CakePHP A simple post system was up very fast to... but

Re: Model Help

2007-07-15 Thread jmartyniak
Right after I posted this I re-read the Model section, and found the way to solve the problem. $this->Item->ItemList->save($this->data); $itemListId = $this->Item->ItemList->getLastInsertId(); $this->data['Item']['item_list_id'] = $itemListId; Thi

Model Help

2007-07-15 Thread jmartyniak
I have a model called Item (model, views, controller) in my add method reached by localhost/item/add, I would like to give the user the ability to create a new ItemList db record from the Item add form. I currently am using the following form code (add.thtml): List: inputTag('ItemList/name', arr