Accessing DB session data from outside app

2007-02-22 Thread kitten
ssion class. (No, it is not just unserialize()). Thank you :) kitten --~--~-~--~~~---~--~~ 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: mod rewrite issue with 1and1 servers

2007-02-09 Thread kitten
it should make no difference. But 1and1.com might have another server configuration than 1and1.de... > > thanks anyhow but it aint happening. Other hosts sometimes need an additional RewriteBase / in the .htaccess. You might want to try this (and experiment with others paths than /).

Re: mod rewrite issue with 1and1 servers

2007-02-08 Thread kitten
Hi :) I got Cake with mod_rewrite working on 1und1 servers (the german branch...) with a little change to the .htaccess in webroot: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L] Please note

utf-8 and database sessions

2007-02-02 Thread kitten
Hi :) As discussed several times in this group, you have to do a mysql_query("SET NAMES 'UTF8'") to work with UTF-8 in your cake app. This seems to create a problem with sessions if you store them in DB through define('CAKE_SESSION_SAVE', 'database'); I tested with CakePHP 1.1.2 and 1.2: in bo

Re: starting year in dateTimeOptionTag()

2007-01-26 Thread kitten
n't require a helper? Sure, you can code it yourself, but I don't see why you would want to do this ;-) Heiner > > If we need a helper, any suggestions or code anywhere to solve this > problem? > > > Please don't slam me, I'm new to Cake but really loving i

Re: hasOne association, Form and tagErrorMsg

2007-01-24 Thread kitten
I stumbled over the same problem a few hours ago... var $uses = array('User', 'Profile'); in the controller solved it. Hope this helps :) Heiner > > On 1/24/07, AD7six <[EMAIL PROTECTED]> wrote: >> Did you try >> $user_validates = $this->User->validates($this->data); >> $profile_validates

Re: starting year in dateTimeOptionTag()

2007-01-17 Thread kitten
is it possible to control the starting year in dateTimeOptionTag() You have to override the method in your own helper. Heiner right now it starts from 1967, I want to start from 2007 is it possible? suman > --~--~-~--~~~---~--~~ You received this mess

Re: Creating links a la Html helper in a component

2007-01-17 Thread kitten
Of course, you could also try to fix TinyMCE so the paths are correct from the source... ;) Rosie: TinyMCE has a configuration option "urlconverter_callback" which lets you define your own JS function to do this kind of stuff. HTH :) Heiner --~--~-~--~~~---~--

Re: CakePHP 1.1.11.4064, thawed and redelivered better than before.

2006-12-04 Thread kitten
Had the same problem, too. Session in DB instead of files. Seems as if one line is missing from cake/bootstrap.php that was present in the previous release: require LIBS . 'model' . DS . 'connection_manager.php'; If you don't want to change the core, you can also add this line to your own ap/co

Re: having empty entry in selecttag selected

2006-10-23 Thread kitten
Hi, > Does no one know how to declare a selectTag, so that the first empty > entry is selected by default? Normally, you would set an entry to be selected by default like this: $html->selectTag( 'User/contact', $Contactlist, $html->tagValue('User/contact') ? $html->tagValue('User/c

Re: url and routing

2006-08-17 Thread kitten
Hi, > routes.php > $parts=split('/',$from_url); > $lang=$parts[0]; > //Save $lang to session > $from_url = $parts[1] . '/' . $parts[2] // do it with > something like join() > > $route-> > ?> > This works fine, except for saving $lang to session -- the session is n

Re: datetime strings and using sanitize->cleanArray()

2006-07-31 Thread kitten
> I then put code to clean the $this->data array in the app_model to try > to setup automatic cleaning of all saved data. What I found was that > because cleanArray() cleans everything without mercy, including html > encoding on everything, it encoded the hyphens in teh datetime format > (not the

Re: Find conditions for HABTM

2006-07-24 Thread kitten
>> Right now, it seems that a custom query (over 3 tables) is necessary to get >> the desired result... > > Why not create an enhancement ticket to allow for this possibility? Done :) By posting to the list, I justed wanted to be sure that I was not overseeing somthing obvious. Heiner > > Che

Re: Find conditions for HABTM

2006-07-23 Thread kitten
> If you mean that a user *hasAndBelongsToMany* submissions, and also a > submission *hasAndBelongsToMany* users, I think you need a link table > "users_submissions" to record the associations. I _have_ the submissions_users table. The HABTM association is working fine as long as I want to retr

Re: Find conditions for HABTM

2006-07-23 Thread kitten
er` JOIN `submissions_users` ON `submissions_users`.`submission_id` = '70' AND `submissions_users`.`user_id` = `User`.`id` WHERE (`submissions_users`.`user_id` = 2) Heiner > > Sam D > > On 7/22/06, kitten <[EMAIL PROTECTED]> wrote: >> >> Hi :) >> &g

Find conditions for HABTM

2006-07-22 Thread kitten
Hi :) I stumbled over a problem with HABTM association that seemed trivial at first but I could not find a real solution... I have a HABTM association between model "User" and model "Submission". Each submission "belongs" to one or more users, each user can be associated with one or more submiss

Re: using one component inside another

2006-07-09 Thread kitten
ssion, it _should_ be available from within all methods of the component. No other ideas than to ask you if you re-checked for typos etc... Best Heiner > > Regards, > Langdon > > > kitten wrote: >> Hi, >> >> You can put this in your Component's

Re: using one component inside another

2006-07-08 Thread kitten
Hi, You can put this in your Component's startup() method: function startup(&$controller) { $this->Controller =& $controller; } They you can access the Session object (and all other controller data) through $this->Controller->Session->read('theData'); Hope this helps ;-) Hein