RE: RE: Auth Help

2011-03-04 Thread Krissy Masters
Noted! Thanks for letting me know. Will post results of what worked / did not soon. Thanks K -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questi

Re: RE: Auth Help

2011-03-04 Thread Sam Bernard
I was reading a blog recently where someone was having a similar problem, except using IE on windows. They got it working by setting: Configure::write('Session.checkAgent', false); in core.php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the n

RE: Auth Help

2011-03-04 Thread Krissy Masters
On my Windows machines IE / FF / Chrome / Safari / Opera all work. Mac just safari right now but I guess its nothing Cake related so I will just dig around on the MAC to see whats happening. Thanks, K -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com]

Re: Auth Help

2011-03-04 Thread Ryan Schmidt
On Mar 4, 2011, at 20:23, Krissy Masters wrote: > How to fix this or even track down where the problem is? > > So I have both MAC and Windows computers here. > Going thru a site and login on windows PC no problem, I can go thru the site > as normal / Auth actions / whatever controllers allow ac

Auth Help

2011-03-04 Thread Krissy Masters
How to fix this or even track down where the problem is? So I have both MAC and Windows computers here. Going thru a site and login on windows PC no problem, I can go thru the site as normal / Auth actions / whatever controllers allow actions (everything works as expected) Login on a MAC

Re: image upload via iphone app

2011-03-04 Thread cricket
On Fri, Mar 4, 2011 at 3:57 PM, Foroct wrote: > Sorry this is not clear. > > If you are browsing my site (not using the phone app) and you add data > and a photo via a form field then the image is being handled by the > media plugin. However when adding data and a photo via the iphone app > I am n

Re: CakeDC Users Plugin - redirect based on role?

2011-03-04 Thread Sam Bernard
In the beforeFilter of your AppController you could set $this->Auth->autoRedirect = false And then just manually fill in your login action function login(){ if(!empty($this->data['User']) && $this->Auth->login($this->data)) if($this->Session->read('Auth.redirect')){ //if you got redirected to lo

Re: CakeDC Users Plugin - redirect based on role?

2011-03-04 Thread designv...@gmail.com
Scratch that. While that seemed like a solution it doesn't make use of the admin route... Anyone else got any ideas? d//t On Mar 4, 9:55 pm, "designv...@gmail.com" wrote: > I LIKEY! > > Cheers, that will do it just fine! > > d//t > > On Mar 4, 9:19 pm, Sam Bernard wrote: > > > One simple way

Re: CakeDC Users Plugin - redirect based on role?

2011-03-04 Thread designv...@gmail.com
I LIKEY! Cheers, that will do it just fine! d//t On Mar 4, 9:19 pm, Sam Bernard wrote: > One simple way is just to have a generic "dashboard" action that chooses > what to display based on user role. You'll want to make sure to manually > call $this->render() in your _dashboard actions. > > fun

Re: CakeDC Users Plugin - redirect based on role?

2011-03-04 Thread Sam Bernard
One simple way is just to have a generic "dashboard" action that chooses what to display based on user role. You'll want to make sure to manually call $this->render() in your _dashboard actions. function dashboard(){ $this->autoRender = false; if($this->Auth->user('role') == 'admin') $this->_ad

Re: image upload via iphone app

2011-03-04 Thread Foroct
Sorry this is not clear. If you are browsing my site (not using the phone app) and you add data and a photo via a form field then the image is being handled by the media plugin. However when adding data and a photo via the iphone app I am not currently handling the photo upload via the media plugi

CakeDC Users Plugin - redirect based on role?

2011-03-04 Thread designv...@gmail.com
Hi there, I have the CakeDC USers Plugin working fine and dandy, but I want to have separate 'users' and 'admins' dashboards... Anyone know how to modify the loginRedirect based on the user role? Cheers! d//t -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: how to redirect and let the server do some lengthy job in the background?

2011-03-04 Thread Tan Cheng
Thanks for all the information. If I go with a shared hosting, I would pick one supporting ffmpeg and cron job, I found cirtex, haven't paid yet because I am still developing on my own machine. I have never used a queueing before, it sounds interesting, i will look into that. I got the cron job wo

Re: how to redirect and let the server do some lengthy job in the background?

2011-03-04 Thread Ryan Schmidt
On Mar 4, 2011, at 12:30, cricket wrote: > Ryan's ideas seem sound but I agree with Mark > that it may be worth your while to look at existing solutions. I > haven't tried Rabbit; am looking at it now. I had not thought to look for external software packages to deal with queueing, but now that

Re: image upload via iphone app

2011-03-04 Thread cricket
On Fri, Mar 4, 2011 at 1:42 PM, Foroct wrote: > "post it to a URL handled by a controller implementing the uploader," > > This is what I don't know how to do.  Currently the controller is > handling the upload and just placing the file into a folder. You said earlier that "image processing is bei

Re: image upload via iphone app

2011-03-04 Thread Foroct
"post it to a URL handled by a controller implementing the uploader," This is what I don't know how to do. Currently the controller is handling the upload and just placing the file into a folder. My code. function app_photo() { // what layout to use $this-

Re: how to redirect and let the server do some lengthy job in the background?

2011-03-04 Thread cricket
On Mon, Feb 28, 2011 at 1:42 PM, Tan Cheng wrote: > Thanks for all the input!!! So much good information to learn. Due to > the tight budget and maybe the site traffic will not be so high, I am > still looking at a shard hosting which supports cron, and maybe let it > run a cake shell every 5 hour

Re: how to all a function from a controller action

2011-03-04 Thread cricket
On Fri, Mar 4, 2011 at 11:24 AM, martin wrote: > hi > i'm new to cakephp, but i know about php. > i didn't get the mvc concept 100% up to now, sorry. > > where do i have to place a function which i want to call from inside > an action of a controller? > i have an import action in the pages control

Re: Changing Employment - Preparing CakePHP for a new Developer

2011-03-04 Thread Sam Bernard
Stephen- I'd definitely start by making sure all your classes are properly commented, and then using the Cakephp API generator(https://github.com/cakephp/api_generator) to generate some documentation from your code. Put together a document that includes links to the relevant documentation fo

Changing Employment - Preparing CakePHP for a new Developer

2011-03-04 Thread Stephen
Hello Everyone I am working a 4 week notice at my current place of employment. I need to prepare documentation and do odd jobs to make the job of replacing me as swift as possible, the only issue is that I am 99.5% certain they will not find or hire a developer familiar with CakePHP (Maybe not ev

how to all a function from a controller action

2011-03-04 Thread martin
hi i'm new to cakephp, but i know about php. i didn't get the mvc concept 100% up to now, sorry. where do i have to place a function which i want to call from inside an action of a controller? i have an import action in the pages controller and need to call several times my oen function convertdat

Re: On the road to Da Vinci 2.0

2011-03-04 Thread euromark
jesus isn't it said that such spam threads get more attention and replies than most of the normal "cakephp" related topics? :) and well - i certainly call it SPAM - regardless of the mother tongue of the author like Sam said, it has been posted all over the www with copy-and- paste...^^ On 4 Mrz

Re: On the road to Da Vinci 2.0

2011-03-04 Thread Mattijs
Bah, next time I'll start by reading the replies instead of reading on for an actual question or interesting point being made. On 4 mrt, 07:02, Sam Bernard wrote: > Me as well... > > I you would like to read the continuing saga of Alexander Sergeyev, the > Symfony developers(bless their hearts) h

WkHtmlToPdf Component problem with Auth.

2011-03-04 Thread Wievior
Hello, I'm trying to use the WkHtmlToPdf Component (http://bakery.cakephp.org/ articles/jwswart/2010/04/09/wkhtmltopdf-component), it seems like a nice tool when facing the problem of generating pdf files. However - I can't get it to work with the Auth Component. The problem is that I always get

Re: how to redirect and let the server do some lengthy job in the background?

2011-03-04 Thread mark_story
A totally different solution would to use a message queue like http://rabbitmq.com. At least the you'll have a generic way to schedule out of band work. And you don't have to use lock files, flag columns or other tricks. -Mark On Feb 28, 3:46 pm, Tan Cheng wrote: > Thank you!!! Also, I underst

Re: Configure datasources plugin

2011-03-04 Thread damien durant
Ok finally i found. As usually when you spend all this time to fix something, the issue come from a dumb mistake : I forget to restart apache after the install/conf of sqlite module ... Sorry for the inconvinenet. On Thu, Mar 3, 2011 at 4:48 PM, damien durant wrote: > Yes, the db file exi

CakePHP Media Plugin

2011-03-04 Thread alberto
Hi, I want to add a validate rule for my model in the CakePHP Media Plugin. I want that for this rule 'pixels' => array('rule' => array('checkPixels', '1366x768')), the pixels have to be exactly se same of 1366x768 and not <= of 1366x768 Is it possible to use this rule? Thank in advance! Al

Re: Multiple Domain App

2011-03-04 Thread xfhxfh
sounds solution ... i'm working with Sandeep, he is the programmer, i'm the idea developer. Will use plugins for upcoming features and make some experience of what amount of extra task is to be considered when propagating stuff as plugins ... nice site you have tx, Frank -- Our newest site for