Re: connecting controllers without tables

2007-09-23 Thread millZ
oh, that works fine. Thank You. But why it is not a good idea to use PagesController as name? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googleg

connecting controllers without tables

2007-09-23 Thread millZ
Hello, I'm using an own PagesController with a pageModel which is not using a table ($useTable = false). The Page-Model has an attribute "hasOne = array('Member' => array('className' => 'Member', 'foreignKey' => 'mID'))" to make the access to the Member-Controller in Page-Controller possible. wh

Re: Dynamics on Pages?

2007-09-22 Thread millZ
yeah that makes sense. I will route the / to /myPagesControllerWithoutTable/index :-) Thx Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@goo

Re: Dynamics on Pages?

2007-09-22 Thread millZ
hey, this is one way. This is mor a workaround the problem. Clearly this works and I will try this way, if ther is no other possibility like the creation of an own PagesController. An own PagesController is my Intention, to get connected with the "home.thtml" by calling http://localhost/applicati

Dynamics on Pages?

2007-09-22 Thread millZ
Hello, I want to geht dynamic content on one of my pages of the pages_controller! But theres a Problem: If I create a PagesController in /controller/ I will be forced to create a Page Model, but this is not the aim of a Page, which has to collect some information from other models/controllers. So

Whats the convention for a private functions?

2007-09-15 Thread millZ
Hello, what is the convention for a private function, which has not to not work as url? example TableController extens AppController { function getSomeInternalData(){ }// eh } so a hyperlink like this has not to result in an error like 'missing view': http://localhost/myCakeApp/tables/

Re: get access from one controller to another

2007-09-15 Thread millZ
Oh Thanks, that works fine :-). yours faithfully --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, sen

get access from one controller to another

2007-09-14 Thread millZ
Hello, how is it possible to call functions of a Controller (EventsController) in another Controller (VisitsController)? The models are connected with visits:belongsto Events events: hasMany Visits I've tried to call "$this->Visit->Event->isFriendEvent($eID)", but this ends with an error, becau

2 relations, where one relation belongs twice to the other

2007-09-13 Thread millZ
Hello, i've hopeness, that you can help me. the situation: i've 2 relations/tables 'members' and 'friends'. The last one has two foreign keys to 'members', so that is 'members' connected with himself, over the relation/table 'friends. It's clear, becaus every member can be a friend of anybody el

A problem with a model that belongs to another model twice

2007-09-13 Thread millZ
Hello, i've hopeness, that you can help me. the situation: i've 2 relations/tables 'members' and 'friends'. The last one has two foreign keys to 'members', so that is 'members' connected with himself, over the relation/table 'friends. It's clear, becaus every member can be a friend of anybody el

Re: A problem with a model that belongs to another model twice

2007-09-13 Thread millZ
I've found the solution. I've to use roles like this: // Rollenverteilung var $belongsTo = array( 'Member1' => array( 'class' => 'Member', 'foreignKey' => 'mID1' ), 'Member2' => array( 'class' => 'Member', 'foreignKey' => 'mID2' ), )

2 relations, where one relation belongs twice to the other

2007-09-13 Thread millZ
Hello, i've hopeness, that you can help me. the situation: i've 2 relations/tables 'members' and 'friends'. The last one has two foreign keys to 'members', so that is 'members' connected with himself, over the relation/table 'friends. It's clear, becaus every member can be a friend of anybody el