Re: CakePHP (2.1) Media Plugin - Multi File Upload

2012-04-23 Thread double07
Sorry I never got notified of replies for some reason, I will try this looping method I think it could work. Thanks! On Apr 17, 7:44 am, jeremyharris wrote: > You could try looping through the files array and saving them manually: > > foreach $_FILES['files'] as $file { > // create data array co

Redirect on new domain with alert

2012-04-23 Thread Chris Cinelli
I have a a domain: www.olddomain.com I am moving to www.newdomain.com and I am using currently using nginx with this parameters: server_name www.olddomain.com; access_log /var/log/nginx.access.log; error_log /var/log/nginx.error.log debug; root /var/www/webroot/; location /

Re: SQL sum function to store as single variable

2012-04-23 Thread 0x20h
Am 22.04.2012 20:24, schrieb kdubya: > [...] > This can be written as a find(): > $total = $this->CustomerPurchases->find('first', > array('conditions'=>array('customerbill_id'=>$billid), > 'fields'=>array('sum(customerpurchases.amount) as total')); I think something like $total = $this->Customer

Re: Unknown time before app_controller beforeFilter

2012-04-23 Thread Dan Moseley
Thanks for the quick replies. I've set up the debug kit and am looking in the timers section: I see "Core Processing (Derived) - 650ms" Any recommendations on where I can dig next? On Monday, April 23, 2012 5:23:18 AM UTC-4, AD7six wrote: > > > > On Monday, 23 April 2012 03:24:27 UTC+2, Dan Mos

Ajax Pagination only works once (no javascript loaded)

2012-04-23 Thread Timo
Hello everyone :) I'm trying to implement Ajax Pagination as described here: http://book.cakephp.org/2.0/en/core-libraries/helpers/js.html#ajax-pagination I've followed all the steps and the ajax loading does work - but only once. When I click another page of the table, the whole webpage is rel

Webcam chat on how I built Coachy.com

2012-04-23 Thread Simon Males
Hi, I'm working on a startup called Coachy.com. Which is a personal webcam coaching platform, written in CakePHP. I'm hoping to share my experiences via webcam in exchange for feedback. If your interested please send some basic information on the contact form on the below page. There is no need t

Re: Double URL in Links

2012-04-23 Thread Michael Gaiser
I was able to fix the issue by adding this to my core.php file. Configure::write('App.baseUrl', "/"); :) -- 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 rela

Re: SQL sum function to store as single variable

2012-04-23 Thread Thiago Belem
Maybe: $total = $var[0]['$total'] ?? -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.co

Re: cakephp automatically adding 3 drop down boxes for birthdate

2012-04-23 Thread Mangesh Sathe
Thanks mike it worked , i forgot text type On Mon, Apr 23, 2012 at 15:57, Mike Griffin wrote: > On Mon, Apr 23, 2012 at 11:22, Mangesh Sathe > wrote: > > Hello all, > > > >I am using Form->input('birthdate', > array('id' > > => 'select2','label'=>false)); ?> code to generate

Re: cakephp automatically adding 3 drop down boxes for birthdate

2012-04-23 Thread Mike Griffin
On Mon, Apr 23, 2012 at 11:22, Mangesh Sathe wrote: > Hello all, > >    I am using Form->input('birthdate', array('id' > => 'select2','label'=>false)); ?>  code  to  generate text input field for > birth date. > But cakephp automatically adding 3 drop down boxes for year,month & day. > > H

Re: CakePhp $this->redirect $this->Session doesn't work

2012-04-23 Thread Gian Paolo Donnarumma
This is the code of my AppController class. As you can see there is session in the component class AppController extends Controller { public function beforeFilter() { $this->Auth->allow('index', 'view','login','logout','edit'); //$this->Auth->allow('login','logout'); }

Re: CakePhp $this->redirect $this->Session doesn't work

2012-04-23 Thread LITTO CHACKO
ya, i sometimes these code works perfect in localserver. but it has problem with in main server. pls do the things i have mention in the previous post. * check spaces at last of controller/model *arrange codes proper On Mon, Apr 23, 2012 at 3:40 PM, Gian Paolo Donnarumma < gpdonnaru...@gmail.com>

Re: CakePhp $this->redirect $this->Session doesn't work

2012-04-23 Thread Gian Paolo Donnarumma
Hi, thank you for your fast reply. The problem is that on my local webserver all works well!! I've only changed webserver from local to a domain. The application works: - direct link - DB but I have a login form that block all because redirect doesn't works. Is possible that is a session proble

Re: CakePhp $this->redirect $this->Session doesn't work

2012-04-23 Thread LITTO CHACKO
@star first of all make sure that u have added this line in your controller public $components = array('Session'); redirect issue is sometimes happends in cakephp. to resolve this you have to arrange code in a certain manner. also pls check whether their is any spaces in model, controller files at

Re: problem of automaially redirecting

2012-04-23 Thread LITTO CHACKO
hai guys at last i resolved it.. it is not any problem with cakephp, it is my own carelessness. it happened because when we write ba redirecting link or href link. make sure that it is closed at the end by " /" symbol ie,enquiry/sendenquiry this link is wrong because it has no "/" symbol at last

CakePhp $this->redirect $this->Session doesn't work

2012-04-23 Thread stranet
Hi, I have a strange problem. On my xampp local server cakephp works well. I've uploaded the project on a webserver online and I think that the "component" doesn't work. $this->redirect doesn't work $this->Session doesn't work how can I resolve? -- Our newest site for the community: CakePHP V

Re: problem of automaially redirecting

2012-04-23 Thread AD7six
On Monday, 23 April 2012 11:35:12 UTC+2, LITTO CHACKO wrote: > > @andy but where i should look for this??? it is problem with all pages?? > and i don't know where this code is written as to point to public site?? > please help > I think you need to try and help yourself a bit (!!!) I have _no_

Re: problem of automaially redirecting

2012-04-23 Thread LITTO CHACKO
@andy but where i should look for this??? it is problem with all pages?? and i don't know where this code is written as to point to public site?? please help On Mon, Apr 23, 2012 at 3:00 PM, AD7six wrote: > > > On Monday, 23 April 2012 11:25:37 UTC+2, LITTO CHACKO wrote: >> >> hello guys, my web

Re: problem of automaially redirecting

2012-04-23 Thread AD7six
On Monday, 23 April 2012 11:25:37 UTC+2, LITTO CHACKO wrote: > > hello guys, my website is automatically redirecting to another page > without any code . > > ie, > > if am standing on this page > http://localhost/dubairealestate/enquiry/ > > after some time of inactivity it redirects to > h

problem of automaially redirecting

2012-04-23 Thread LITTO CHACKO
hello guys, my website is automatically redirecting to another page without any code . ie, if am standing on this page http://localhost/dubairealestate/enquiry/ after some time of inactivity it redirects to http://localhost/dubairealestate/enquiry/index.php why is this so??? is this any pblm wi

Re: Unknown time before app_controller beforeFilter

2012-04-23 Thread AD7six
On Monday, 23 April 2012 03:24:27 UTC+2, Dan Moseley wrote: > > Hi All, > Could anyone help me to understand exactly what occurs prior to the first > line of the app_controller's beforeFilter? > > I'm using the following line on the first line of my app_controller: > >> round(microtime(true) - $