Re: find articles of active users<-authors (bind model)

2007-08-17 Thread jyrgen
the User model is not directly associated to Articles, but via the Author model. Articles have a foreign "author_id", same does the User model. When i add an association in the Article model between User and Article like this: (i could do this on the fly with bind model also) 'U

Re: find articles of active users<-authors (bind model)

2007-08-17 Thread jyrgen
here's the crucial part of the sql generated: ... FROM `articles` AS `Article` LEFT JOIN `authors` AS `Author` ON `Article`.`author_id` = `Author`.`id` LEFT JOIN `users` AS `somestring` ON `Article`.`user_id` = `somestring`.`id` ... the problem is that `Article`.`user_id` doesn't exist.. -

Re: find articles of active users<-authors (bind model)

2007-08-17 Thread jyrgen
l sits *in between* Article and User... Obviously the User model is not present. jyrgen --~--~-~--~~~---~--~~ 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@g

find articles of active users<-authors (bind model)

2007-08-17 Thread jyrgen
ive = 1; $sortby = array("Article.created" => "DESC"); $article_list = $this->Article->findAll($conditions, null, $sortby); I know i can get this running, but i'm stuck here. Do i have to bind the User model at all ? (since it *is* already associated->as

find empty text field & addslashes

2007-08-05 Thread jyrgen
#x27;Article']['Article.remark'] = "!=''"; is converted into select * from articles where fotohinweis != '\"\"' which gives *all* articles, because it searches for \"\" any ideas ? thanks, jyrgen --~--~-~--~~~--

Re: circular references ? / mod_rewrite

2007-07-19 Thread jyrgen
Geoff, thanks for your response. My setup is this: webserver docroot / index.php then /app -config/ -models etc.. -webroot /cake (the core stuff) a standard installation. otherwise i would have mentioned. i have no access to httpd.conf, (shared environment) --~--~-~--~

circular references ? / mod_rewrite

2007-07-19 Thread jyrgen
tive needs different parameters for the three .htacces files. also this happens on a live production server, where i don't want to twiggle around and get stuck. can someone point me to a solution for this ? thanks , jyrgen --~--~-~--~~~---~--~~ You received this m

Re: determine current view name

2007-06-30 Thread jyrgen
On 29 Jun., 19:44, francky06l <[EMAIL PROTECTED]> wrote: > $this->name in view. > that's the controller name :-( thanks anyways, jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

determine current view name

2007-06-29 Thread jyrgen
myview"); in other words: how can i distiguish between different views rendered in a single action. i pr'd $this->controller and $this->View, but the view rendered didn't show up. thanks, jyrgen --~--~-~--~~~---~--~~ You received this message b

Re: session handling via "database"

2007-06-26 Thread jyrgen
sider increasing the gc probability). check then if the session table has been emptied. i don't quite believe that gc is not happening on your site. but make sure it is before diving deeper into the session mechanism. best, jyrgen --~--~-~--~~~---~--~~ You rec

Re: session handling via "database"

2007-06-26 Thread jyrgen
,100); will set the garbage collection probability to 1/100 cheers, jyrgen --~--~-~--~~~---~--~~ 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

protect another app for testing and development

2007-06-18 Thread jyrgen
ndering how to hide the "alpha" version from normal users... Should i employ an auth mechanism or can i utilize .htaccess files ? Maybe the subdomain approach is better ? (which is running nicely in conjunction with my admin pages) (i have no access to ap

dynamic validation - best practice

2007-06-11 Thread jyrgen
hi again, how can i set up different validation rules (for a model) for different user types ? for example the regular web user *must* enter his phone number when registering, while the backend admin may create records that just contain the last name. thanks a lot. jyrgen

Re: virtual subdomain & .htaccess

2007-05-19 Thread jyrgen
hi ! i have no idea what you want to achieve. please put your question in clearer words . Generally avoid hassling around with the rewrite rules, in most cases you don't have to modify the .htaccess files. check out cake's routing feature. che

Re: User and Friend model HasAndBelongsToMany relationship

2007-05-17 Thread jyrgen
, but you have to set it up manually. good luck and let us know how you did it jyrgen --~--~-~--~~~---~--~~ 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@googlegro

Re: session serialize handler

2007-05-17 Thread jyrgen
aybe. but it's definitely a means to overcome session data encryption... thanks, jyrgen --~--~-~--~~~---~--~~ 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@go

Re: session serialize handler

2007-05-17 Thread jyrgen
time? here i disagree. it's less effort to: $this->Session->write('User.logged_in', 1); upon successful login. and if($this->Session->readSessionVar('User.logged_in') == 1){ in beforeFilter in app_controller.php best, jyrgen --~--~-~--~-

Re: session serialize handler

2007-05-17 Thread jyrgen
This is my solution for prevention of multiple logins with grigri's helper function. have fun , jyrgen users_controller.php ... // ... password validation succeeded ... // custom session garbage collection // $sessions = $this->Mysession->findAll(); foreach($sessions

Re: Session issue.

2007-05-16 Thread jyrgen
em. check the cookie information in your browser: expiration, path and so on. did you set up any fancy routings ? admin routing ? admin on a subdomain... hope this helps. ps: check your php session settings as well cheers, jyrgen --~--~-~--~~~---~--~~ You rec

Re: session serialize handler

2007-05-16 Thread jyrgen
beatiful :-) thanks very much ! cheers, jyrgen On 16 Mai, 16:56, grigri <[EMAIL PROTECTED]> wrote: > Nice and simple solution: > > function decode_session_data($encoded) { > $backup = $_SESSION; > $_SESSION = array(); > session_decode($encoded); > $ret

Re: session serialize handler

2007-05-16 Thread jyrgen
beautiful ! so this is the meaning of "transparent encryption" from the suhosin "hardening" feature list... thanks ! jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"

Re: session serialize handler

2007-05-16 Thread jyrgen
owers the site security, but for now i can live with this. best, jyrgen --~--~-~--~~~---~--~~ 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 u

Re: session serialize handler

2007-05-16 Thread jyrgen
> > * prevention of multiple logins * > > You want only one person to be logged in at a time OR you don't want > the same person to login from multiple computers at the same time? sorry, this was ambigous... the latter, one person may login only on

Re: session serialize handler

2007-05-15 Thread jyrgen
le logins * (which i assumed being an easy task to achieve :-) in fact i like soytuny's idea... cheers, jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, sen

Re: session serialize handler

2007-05-15 Thread jyrgen
> Why not just register a session handling function to do that? because i don't want to mess / overwrite / interfere with cake's gc, which is just doing fine. i need to collect garbage only once, before someone attempts to login. by means of this i make sure that compare only against active acc

Re: session serialize handler

2007-05-15 Thread jyrgen
> PHP sessions are managed by a garbage-collection routine and have > expiration times. thanks, yes i know. i do collect garbage "manually" by deleting expired rows from the session table (before the login). please don't get me wrong. i worked all this out, and it was running until my provider i

Re: session serialize handler

2007-05-15 Thread jyrgen
yeah, you're right. I could set up an extra table for this, or add an extra column to the user record. but when a session is not closed properly, the login value remains 1. > You definitely could...but then you have to make sure you delete old > records so that you don't record someone as being

Re: session serialize handler

2007-05-15 Thread jyrgen
hm. do you mean i should rather store the login state somewhere else, in another table... ? --~--~-~--~~~---~--~~ 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@googlegroup

Re: session serialize handler

2007-05-15 Thread jyrgen
wice hm... don't you agree ?? What can you see, when you evaluate $_SESSION ? Or $this->session in cake ? You see the session of the current user, but not the login state of *all* users. jyrgen On 15 Mai, 22:17, MrTufty <[EMAIL PROTECTED]> wrote: > Jyrgen, > > I stil

Re: session serialize handler

2007-05-15 Thread jyrgen
> Sorry you feel differently. If you have the source, you should be > able to figure it out. c'mon that's really kiddy stuff. i'm talking about software design, and i would like to know why this or that has been implemented. if you would point every user to the sources, what's the use of this g

Re: session serialize handler

2007-05-15 Thread jyrgen
> So why don't you go into the source of CakePHP and look at the code? guess what i did... i found... nothing which helped me any further. thats why i posted this problem again , but thanks, anyway (not ironic) --~--~-~--~~~---~--~~ You received this message beca

Re: session serialize handler

2007-05-15 Thread jyrgen
thanks Matt, generally i don't post anything here before looking in to source. ok, so what do we find in the session lib: the database read function : function __read($key) { $db =& ConnectionManager::getDataSource('default'); $table = $db->fullTableName

Re: session serialize handler

2007-05-15 Thread jyrgen
> Wouldn't it better for you to learn how it works instead of someone > just spoon-feeding you an answer? now that's a great help ! :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to t

Re: session serialize handler

2007-05-15 Thread jyrgen
i wished that phpnut or any other guy who wrote this lib could be pointed to this thread... :-) --~--~-~--~~~---~--~~ 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@google

Re: cake delivers strange session data

2007-05-15 Thread jyrgen
does that mean that my hosting provider activated the suhosin patch ? that would explain it. can i decrypt the data manually ? > Suhosin or a similar PHP-securing extension that auto-encrypts Session > and Cookie vars, maybe? > > -Matt --~--~-~--~~~---~--~~ You r

Re: session serialize handler

2007-05-15 Thread jyrgen
> Why can't you set a cookie? Way easier. how do you mean ? cookies are activated. please explain --~--~-~--~~~---~--~~ 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: session serialize handler

2007-05-15 Thread jyrgen
> Again, why are you trying to read entries from the session table? in the session i store the user ID, as well as a flag "logged_in" (equals 0 or 1). so i can test in my actions if the user is authenticated. does that make sense ? now imagine another user with the account data (doesn't matter

Re: session serialize handler

2007-05-15 Thread jyrgen
i get a php error, of course, the format is not accepted, Notice: unserialize(): Error at offset 0 of 117 bytes in /var/www/cake/ app/views... how does cake do it ? this is what i just don't get into my head, since the session lib is able to read and write values from / to the db --~--

Re: session serialize handler

2007-05-15 Thread jyrgen
i don't think i need a custom session handler. cake's session component *is* such a handler. i just want to get the data column deserialized, thats all. but it seems impossible with this format i find in the db. for example where does the " | " sign come from ?? --~--~-~--~~-

Re: session serialize handler

2007-05-15 Thread jyrgen
i need access to *all* existing valid sessions in the table, so i can test, if a user is already logged in . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cak

Re: session serialize handler

2007-05-15 Thread jyrgen
179247983;s: 9:"userAgent";s:32:"cc98eaffc23c634e0efd75ab9e36e810";} php fails to unserialize this string !! thats why i cannot read entries from the session table. jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to

session serialize handler

2007-05-15 Thread jyrgen
why can't i simply use php's (un)serialize in order to get data out of the session table ? i might be wrong but i expected this to work, since php internal serialize handling is activated: ini_set('session.serialize_handler', &#x

Re: cake delivers strange session data

2007-05-14 Thread jyrgen
the aforementioned problem went away after one hour or so. perhaps i should consider changing my hosting provider .. thanks for looking over this :-) jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: cake delivers strange session data

2007-05-14 Thread jyrgen
7;, '1179180222', 'htgs5384dsj4hets481tmhfba4') are the session data corrupted or is this a encryption feature ? what's going on ? can somebody at least point to a method where i can start debugging ? any help is appreciated ! thanks again, jyrgen --~--~-~-

cake delivers strange session data

2007-05-14 Thread jyrgen
27;7YDr60NnYV1R2asLTAPMDb- q3OO1lqf22IDYuIJBAswmyfMyO2Y3oYFdi3TGWsqh1hPFh4XWN0aEQNQFmIhGuRtpqDmpZ8Fm do you know where this comes from ? please help, thx jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to

routing question: how to pass by a specific directory

2007-05-08 Thread jyrgen
install another app, besides the cake app, but as soon as i try to access that second app, i get missing controller errors, auth problems and such. thanks, jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: searching for a newsletter component

2007-05-06 Thread jyrgen
t that the community will grow far beyond 1000 Users. The mailer will of course not send 1000 emails at once. thanks, jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this

Re: Benefits of Admin Routing

2007-05-06 Thread jyrgen
by means of admin routing you can for example put all your backend actions into a subdomain (http://admin.yoursite.com) http://bakery.cakephp.org/articles/view/hosting-admin-urls-on-a-subdomain cheers, jyrgen --~--~-~--~~~---~--~~ You received this message

Re: searching for a newsletter component

2007-05-06 Thread jyrgen
chris, if i had the choice i would go for Majordomo or another decent list manager. But i have to deal with shared hosting. i'll check out phplist and see if i can integrate it into the framework. cheers, jyrgen --~--~-~--~~~---~--~~ You received this me

Re: searching for a newsletter component

2007-05-06 Thread jyrgen
i'm talking about a n e w s l e t t e r. (see above ! ) don't mix that up with spam. > I've tried to stay away from building spam components, hurts my > reputation on the streets. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: searching for a newsletter component

2007-05-06 Thread jyrgen
sorry, my question is not so much cake related. i mean a mass mail mechanism which integrates with the cake architecture esp. class_phpmailer.php in the meantime i found phplist, if you have any experiences with this, please let me know. --~--~-~--~~~---~--~~ Yo

searching for a newsletter component

2007-05-06 Thread jyrgen
has anybody implemented a newsletter component or plugin ? couldn't find anything here as well as in the bakery . thanks, jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group.

Re: In-depth Model Tutorials

2007-05-04 Thread jyrgen
have more than 1000 lines of code, but would you call that "fat" ? it also depends on how many actions (frontend as well as admin) one invents cheers, jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: session path / mod_rewrite

2007-05-03 Thread jyrgen
i forgot to mention that the live pages are still protected via a htgroup file in /. It contains Login and password, no paths. But could it possible interfere with the session cookie path ? --~--~-~--~~~---~--~~ You received this message because you are subscribed

session path / mod_rewrite

2007-05-03 Thread jyrgen
ickn dirty hack in the session lib by forcing ini_set('session.cookie_path', $this->path); to ini_set('session.cookie_path', "/"); unless you have a better idea ;-) thanks ! jyrgen ps. : i've described the problem in http://groups.google.ch/group/cake-php/b

session cookie delivered twice with different path restrictions

2007-05-02 Thread jyrgen
, and proceed to the app. the situation on my development machine (localhost) is different though. here everythings works nicely, the session path is /cake/ (doc root relative to my app) hope you can help, thanks jyrgen --~--~-~--~~~---~--~~ You received this me

Re: Cannot add new records

2007-05-02 Thread jyrgen
e, part of your view as well as your action code, otherwise debugging is almost impossible, at least for me :-) cheers, jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to

"made with cakephp"

2007-04-23 Thread jyrgen
anks a lot , jyrgen --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECT

Re: mod_rewrite Problem

2007-04-17 Thread jyrgen
, jyrgen --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] For mo

Re: creating static links to documents

2007-04-16 Thread jyrgen
more... http://groups.google.ch/group/cake-php/browse_thread/thread/9d1ebcc2d01d75c3/9370d56570cb5347 maybe your can answer there. thanks a bunch, jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "C

Missing Controller errors with mod_rewrite

2007-04-16 Thread jyrgen
ller dump the controller name is "Users" and not "Adminusers" what can i do ? thanks, jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, sen

Re: creating static links to documents

2007-04-15 Thread jyrgen
ation of controller names take place? It seems obvious that the subdomain string is taken into account here. thank you so much ! jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To p

Re: creating static links to documents

2007-04-15 Thread jyrgen
uld be Users Controller and so on... see this thread: http://groups.google.ch/group/cake-php/browse_thread/thread/ecddc4832edc3d6a/430b62f0e4b3b4e3 and this: http://groups.google.ch/group/cake-php/browse_thread/thread/45a30f85c8ab163f/8c

Re: creating static links to documents

2007-04-15 Thread jyrgen
On 15 Apr., 10:25, "sumanpaul" <[EMAIL PROTECTED]> wrote: > ahh is your mod_rewrite enabled? in apache conf yes. but i've commented out the .htaccess files. is mod_rewrite neccessary for creating static links ?? cheers, jyrgen --~--~-~--~~-

Re: creating static links to documents

2007-04-15 Thread jyrgen
> echo $html->link('File','http://host.com/files/quickguide.pdf'); no, i get a "not found" error. But the pdf is there. jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: creating static links to documents

2007-04-14 Thread jyrgen
;APP_DIR', 'app'); define('DS', DIRECTORY_SEPARATOR); define('ROOT', dirname(__FILE__)); // this dir ! define('WEBROOT_DIR', 'webroot'); define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS); // app-dir / webroot

Re: creating static links to documents

2007-04-14 Thread jyrgen
with my routing ? jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group, send email to [EMAIL PROTECTED

Re: creating static links to documents

2007-04-14 Thread jyrgen
will be placed online (in the www root dir). any more ideas ? thanks, jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [EMAIL PROTECTED] To un

creating static links to documents

2007-04-13 Thread jyrgen
hi all, i am wondering how to create static links with the link helper (for example to a pdf) and where to put the files. $html->link always renders http://host/cake/index.php/controller/action which i don't want in this case. thank you

Re: Session fatal error (database gc)

2007-04-12 Thread jyrgen
on.gc_probability",1); ini_set("session.gc_divisor",100); respectively. at least on my ubuntu i couldn't find any cron jobs which interfere with cake's database driven session handling. cheers, jyrgen --~--~-~--~~~---~--~~ You received

Re: Session fatal error (database gc)

2007-04-12 Thread jyrgen
. why experimenting with probability ? why random ? hm.. jyrgen > function __close() { > $probability = mt_rand(1, 150); > if($probability <= 3) { > $this->__gc(); > } &g

Re: unserialize error

2007-04-12 Thread jyrgen
e sessions ? can you read the usernames from another table, which is related to the session entry ? i would have been better of storing the logged_in status in another table... but anyways, it works for now... regards, jyrgen --~--~-~--~~~---~--~~ You receiv

Re: unserialize error

2007-04-07 Thread jyrgen
ions as $session){ if($session['Mysession']['expires']Mysession->del($session['Mysession']['id']); } } use the mysession model i posted above. majna, wasn't it this what you have been looking for ? cheers, jyrgen --~--~-

Re: unserialize error

2007-04-07 Thread jyrgen
s[$a[$i]] = unserialize( $a[$i+1] ); } } should be combined with a session model in order to avoid explicit sql quering. i can live with that :-) still searching for a method to collect session garbage. once i got this done, multiple logins are prevented and my auth syste

Re: unserialize error

2007-04-07 Thread jyrgen
oops. i just noticed that the Session model interferes with the Session object. therefore i renamed the Session model into mysession.php class Mysession extends AppModel{ var $name = 'Mysession'; var $useTable = 'sessions'; } j. --~--~-~--~~~--

unserialize error

2007-04-07 Thread jyrgen
lers/users_controller.php on line 88 with 117 being the last position "}" of the serialized string Config|a:3:{s:4:"rand";i:1024300043;s:4:"time";i:1175942427;s: 9:"userAgent";s:32:"cc98eaffc23c634e0efd75ab9e36e810";} thanks for your help! jyrgen

Re: the controller::flash() function doesn't work

2007-04-07 Thread jyrgen
flash itself won't redirect. $this->Session->setFlash('Invalid id for Article.'); $this->redirect('/articles/search'); works for me. paste some code. cheers, jyrgen --~--~-~--~~~---~--~~ You received this message becaus

Re: find session entries / force session _gc / (de)serialization

2007-04-06 Thread jyrgen
e logins. this would help me a lot to get started. maybe othauth has such a feature, i'll have a look at it... jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this gr

Re: find session entries / force session _gc / (de)serialization

2007-04-06 Thread jyrgen
> Ah, I understand. Perhaps the easiest way to solve this problem is to > create a custom session handler that uses the login ID as the key for > the session. You can't have more than one session with the same login > ID that way, so that stops multiple logins. what do you mean exactly by custo

Re: find session entries / force session _gc / (de)serialization

2007-04-05 Thread jyrgen
bability to 1 to achieve this, but i dislike the idea... anyways, apart from read/write to the current session there seems to be no other routines out of the box for my needs. thats why i considered setting up a model for the session table. but when it

find session entries / force session _gc / (de)serialization

2007-04-05 Thread jyrgen
_read work: 3) how does the actual (de)serialization happen in class CakeSession ? thanks, jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send e

Re: sessions in database

2007-04-04 Thread jyrgen
e i had to search all existing session entries in the db for a userID and the logged_in flag. the code i posted is ugly, i looked at /lib/session.php twice but i was not able to determine how cake unserializes the session vars. still i'm looking for a better

Re: sessions in database

2007-04-04 Thread jyrgen
x27;data'], -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ); for( $i = 0; $i < count( $a ); $i = $i+2 ) { $variables[$a[$i]] = unserialize( $a[$i+1] ); } } pr($variables); cheers, jyrgen --~--~-~--~~~---~--~

sessions in database

2007-04-04 Thread jyrgen
s for your help jyrgen --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROT

Re: filtering HABTM data (once more)

2007-04-03 Thread jyrgen
thanks jon, we crossposted. i'll remove the association array from the lookup model, it is not needed there, you're right. j. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group

Re: filtering HABTM data (once more)

2007-04-03 Thread jyrgen
"articlesright.php" -> "articles_right.php" i can't believe it, i got it running ! thanks a ton guys esp. for your patience :-)) i'd suggest to include this solution into the faq, if you're still gathering useful techniques..

Re: filtering HABTM data (once more)

2007-04-03 Thread jyrgen
'finderQuery' => '', 'deleteQuery' => '', ), ); } ### and the framework complains : Fatal error: Cannot instantiate no

Re: filtering HABTM data (once more)

2007-04-03 Thread jyrgen
i'm getting this error: Fatal error: Cannot instantiate non-existent class: tagassociationa in /var/www/cake/cake/libs/model/model_php4.php on line 445 J --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"

Re: filtering HABTM data (once more)

2007-04-03 Thread jyrgen
sorry for insisting, but it is still not clear for me, after i did some testing. do i have to create a model file for each association ? or does your code create the assiociations dynamically ? thanks again, jyrgen --~--~-~--~~~---~--~~ You received this

Re: filtering HABTM data (once more)

2007-04-03 Thread jyrgen
Can somebody please explain the model definitions of TagAssociation ? Are they bare ? J --~--~-~--~~~---~--~~ 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.

Re: filtering HABTM data (once more)

2007-04-03 Thread jyrgen
thanks jon, a more simple (silly?) question about TagAssociationA and TagAssociationB resp. did i get you right that they are identical but just carry different names in order to get sql set up ? thx, j --~--~-~--~~~---~--~~ You received this message because

Re: filtering HABTM data (once more)

2007-04-03 Thread jyrgen
could you please give an example, maybe according to the one in the thread i mentioned above, this one: > Working E.g. > $this->Post->bindModel(array('hasOne'=>array('PostsTag'=>array(; > $constraint['Post.published'] = '< '.date('Y-m-d H:i:s'); > $constraint['PostsTag.tag_id'] = $tagId; // o

Re: filtering HABTM data (once more)

2007-04-03 Thread jyrgen
sure, it won't make sense to bind a model for each value... so what remains is to build the query manually. hm actually i want to avoid this, since the query is already quite complex. hmm... let me rethink this. maybe i missed sth, because i'm wondering that apparently nobody ever came across th

Re: filtering HABTM data (once more)

2007-04-03 Thread jyrgen
> an AND is illogical - the field in A row in the database can only have > ONE value. i see... how would i find posts containing both tags "foo" and "bar" ? this appears to be a rather common query to me. jyrgen --~--~-~--~~~---~--~~

filtering HABTM data (once more)

2007-04-02 Thread jyrgen
and" => array(1,2)); with the same result. and this: $conditions['ArticlesRight']['right_id'] = Array("and" => array("ArticlesRight" => Array("right_id" => 1, "right_id" => 2))); wh

Re: session handling set to "database"

2007-04-02 Thread jyrgen
on different machines. > ini_set("session.gc_divisor",100); jyrgen --~--~-~--~~~---~--~~ 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.

Re: session handling set to "database"

2007-04-02 Thread jyrgen
0 the only remarkable difference is the dc_divisor... hm... any ideas ? jyrgen --~--~-~--~~~---~--~~ 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.co

Re: session handling set to "database"

2007-04-01 Thread jyrgen
rther here.. thanks again, jyrgen ps. can somebody of the developer guys (nate?) make it clearer ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-

Re: session handling set to "database"

2007-04-01 Thread jyrgen
i will try to set gc_divisor and gc_maxlifetime in the session constructor... and see what happens... thank you very much jyrgen > > session cleaning depends on these php settings: > session.gc_probability, session.gc_divisor and session.gc_maxlifetime. > As far as I can tell,

session handling set to "database"

2007-04-01 Thread jyrgen
by the cake session class, and has to be adjusted manually ? thx, jyrgen --~--~-~--~~~---~--~~ 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

  1   2   >