# |
Aug 8th 2008, 13:56 |
CrazyTux[m] |
echo '<!--'; var_dump($therapies); echo '-->' . "\n"; |
# |
Aug 8th 2008, 13:56 |
CrazyTux[m] |
$services = $this->Service->findAllByStatus(1); |
# |
Aug 8th 2008, 13:56 |
AD7six |
CrazyTux[m]: STOP |
# |
Aug 8th 2008, 13:56 |
CrazyTux[m] |
$conditions = $this->Condition->findAllByStatus(1); |
# |
Aug 8th 2008, 13:56 |
CrazyTux[m] |
$therapies = $this->Therapy->findAllByStatus(1); |
# |
Aug 8th 2008, 13:56 |
CrazyTux[m] |
$this->Condition->contain(array('id')); |
# |
Aug 8th 2008, 13:56 |
CrazyTux[m] |
$this->Therapy->contain(array('id')); |
# |
Aug 8th 2008, 13:56 |
teknoid |
** not here |
# |
Aug 8th 2008, 13:56 |
CrazyTux[m] |
// lets load up the therapies, conditions, and services links. |
# |
Aug 8th 2008, 13:56 |
CrazyTux[m] |
public function index(){ |
# |
Aug 8th 2008, 13:56 |
CrazyTux[m] |
public $helpers = array('PhoneNumber'); |
# |
Aug 8th 2008, 13:56 |
CrazyTux[m] |
public $uses = array('WebListing', 'Therapy', 'Condition', 'Service'); |
# |
Aug 8th 2008, 13:56 |
CrazyTux[m] |
{ |
# |
Aug 8th 2008, 13:56 |
CrazyTux[m] |
Class MainController extends AppController |
# |
Aug 8th 2008, 13:56 |
CrazyTux[m] |
teknoid, lqdice__ controller: <?php |
# |
Aug 8th 2008, 13:56 |
CrazyTux[m] |
pasting. |
# |
Aug 8th 2008, 13:56 |
AD7six |
mil: rails wouldn't have helped you fix that problem then ;) |
# |
Aug 8th 2008, 13:56 |
teknoid |
CrazyTux[m]: maybe you should post your code... |
# |
Aug 8th 2008, 13:55 |
mil |
cute, eh? |
# |
Aug 8th 2008, 13:55 |
CrazyTux[m] |
s/error/warning/ |
# |
Aug 8th 2008, 13:55 |
mil |
I was editing the wrong file |
# |
Aug 8th 2008, 13:55 |
CrazyTux[m] |
lqdice__, Model "Therapy" is not associated with model "id" is the new error. |
# |
Aug 8th 2008, 13:55 |
mil |
so |
# |
Aug 8th 2008, 13:55 |
mil |
hah |
# |
Aug 8th 2008, 13:54 |
lqdice__ |
oh ok |
# |
Aug 8th 2008, 13:54 |
lqdice__ |
CrazyTux[m]: you are prolly doing 'Therapy.blabla' . just remove 'Therapy' from it |
# |
Aug 8th 2008, 13:54 |
AD7six |
lqdice__: debug your model instance and look for the wity key. |
# |
Aug 8th 2008, 13:54 |
CrazyTux[m] |
lqdice__, yes |
# |
Aug 8th 2008, 13:54 |
teknoid |
lqdice__: if you are not happy with the name of the auto join-table model |
# |
Aug 8th 2008, 13:54 |
lqdice__ |
CrazyTux[m]: containable? |
# |
Aug 8th 2008, 13:54 |
lqdice__ |
seen it somewhere |
# |
Aug 8th 2008, 13:54 |
CrazyTux[m] |
Model "Therapy" is not associated with model "Therapy" <--- why would I get this warning? |
# |
Aug 8th 2008, 13:54 |
lqdice__ |
what's the WITH keyword for.. i never understood it |
# |
Aug 8th 2008, 13:53 |
lqdice__ |
;) |
# |
Aug 8th 2008, 13:53 |
AD7six |
lqdice__: GroupsNode probably |
# |
Aug 8th 2008, 13:53 |
teknoid |
lqdice__: seems about right |
# |
Aug 8th 2008, 13:53 |
lqdice__ |
AD7six: in find('first', array('condition' => array('GroupNodes.write_access' => 1)) ? |
# |
Aug 8th 2008, 13:52 |
AD7six |
agentbob: ;) |
# |
Aug 8th 2008, 13:52 |
AD7six |
lqdice__: by adding a condition to your association |
# |
Aug 8th 2008, 13:52 |
flzz |
jayemef: yea it would be nice |
# |
Aug 8th 2008, 13:52 |
lqdice__ |
if I have group habtm nodes.. and in my groups_nodes table I have another column that is "write_access".. how can I get all nodes for a group but that have write_access = 1 |