Re: how to display the particular month wise and partuclar day wise recods

2010-05-06 Thread heh
hi I'm new to cake too. But for doing in a standard sql you can use Ex: select * from timesheets where user_id='$id' AND 'date'='month'; as select * from timesheets where user_id='$id' AND month('date')='month'; assuming that you use mysql like me. for cake syntax you have to dig a bit about find

Re: Multiple AJAX Forms on same page all submitting to first form.

2010-05-06 Thread Nilz
Why are you using two ids? create('User', array('action'=>'check', 'id'=> $formid, 'name'=>$formid, 'id' => $submitid)); ?> I use $ajax->form to work this fine for me. Hope it help. On May 7, 2:10 am, Robert McWay wrote: > Hello All, > > I am having trouble with putting multiple ajax form in

Re: Sometimes ACL is just too much

2010-05-06 Thread mmamedov
I have to agree with Zaky on this; ACL is a killer for small apps. Even with my large scale project, there was a point where I wanted (among other things, I am 100% responsible for ACL) to throw it away and implement my own, not so cakish, but a working solution. It took a lot of research to make

Re: Custom functions in model?

2010-05-06 Thread Jerry
Hi Brian: Abstract it into helper is not much different in view. In this case I will do like this: App::import('Model', 'Project'); $p = new Project; $p->getTiming(); For your reference. -- Jerry On 5月7日, 上午5時40分, bmcelhany wrote: > Hello, > > I have a model (Project) that has a projected_end

how to display the particular month wise and partuclar day wise recods

2010-05-06 Thread Narendra Padala
Hi..! I am new to cakephp, how to display the particular month wise and partuclar day wise recods. I was stored date database table "$date = date('Y-d-m');" format. $id=$user_id; $day=date(d); $month=date(m); Ex: select * from timesheets where user_id='$id' AND 'date'='month'; ^

Re: how write update query in cakephp

2010-05-06 Thread Jeremy Burns
This is basic stuff that is covered very adequately in the online guide: http://book.cakephp.org/view/1031/Saving-Your-Data The key difference between an insert and an update is that if Cake finds a valid id field/value in your data array, it will update that row. If it does not find a valid id

Re: Auth->user and SSL

2010-05-06 Thread Jeremy Burns
I have resolved this (thanks to designvoid for pointing the way). It was indeed due to secure cookies. As soon as the site steps out of SSL back into non-SSL, the cookie (that had been created within SSL) was invisible. The fix is to add this line: Configure::write('Session.cookie_secure', 0);

how write update query in cakephp

2010-05-06 Thread Narendra Padala
Hi..! I am new to cakephp,how to conver the following qyery in to cakephp please any can help me out. $timem _out = date('H:i:s'); $date = date('Y-d-m'); UPDATE Timesheets SET time_out = '$time_out' WHERE id = '2' AND date = '$date'; thanks in advance...! Actually this is my for data.

Re: PHP CodeSniffer

2010-05-06 Thread Braindead
Hi Achilleas, you are right that CodeSniffer validates your code to make sure that it follows certain conventions. It is possible to define a validation set that reflects CakePHPs conventions. If your code doesn't follow these conventions CodeSniffer gives you a warning and you have the possibilit

Re: Custom functions in model?

2010-05-06 Thread Jeremy Burns
I agree - but if you really want to utilise a model function, you can. To call a function within the same model, just use '$this->function()' - in other words, not '$this->Model->function()'. I'd be tempted to adjust my data within the model rather than wait until I got to the view. This means

Re: css not applying to my site

2010-05-06 Thread Dr. Loboto
http://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess On May 6, 11:11 pm, mudazer wrote: > hi > >   this is mudazer, am new to cake php frame work,may i know why the > css and js are not included in cake php frame work and also when i > click any link it shows page not found,is ther

Re: Custom functions in model?

2010-05-06 Thread Dr. Loboto
Actually this task looks like pure view tasks. So better put code into helper, not model. Except case when you need this timing data in controller. On May 7, 4:40 am, bmcelhany wrote: > Hello, > > I have a model (Project) that has a projected_end_date field. What I'd > like to do in the view is c

Re: fresh install of cakephp 1.3, Fatal Error: Call to a member function cd()

2010-05-06 Thread mikeottinger
Fantastic, thanks for the follow through on this. On May 6, 5:16 pm, Graham Weldon wrote: > Please see the resolution / explanation on Ticket > #672http://cakephp.lighthouseapp.com/projects/42648-cakephp-1x/tickets/672 > >

Re: pageTitle removal in 1.3: what about static pages?

2010-05-06 Thread Sergei
Actually this->set(title_for_layout) in the *view* sets this variable ONLY for layout. It doesn't available in the view. Maybe this is a bug or something? On Apr 29, 3:13 pm, John Andersen wrote: > It is written in the migration section, that you should use the views > method $this->set instead.

Re: Job hunting

2010-05-06 Thread Alejandro
Thanks Sam!! El 06/05/2010 15:55 p.m., Sam Sherlock escribió: > http://cakephp.org/jobs > > I think that Snook had a site too for cake job offers but might be no > longer available > > > - S > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

Re: fresh install of cakephp 1.3, Fatal Error: Call to a member function cd()

2010-05-06 Thread Graham Weldon
Please see the resolution / explanation on Ticket #672 http://cakephp.lighthouseapp.com/projects/42648-cakephp-1x/tickets/672 -- Cheers, Graham Weldon http://grahamweldon.com e. gra...@grahamweldon.com On Fri, May 7, 2010

Custom functions in model?

2010-05-06 Thread bmcelhany
Hello, I have a model (Project) that has a projected_end_date field. What I'd like to do in the view is calculate the number of days from the current date until the projected end date and display how much time is left (or how many days overdue). This data really only needs to be in a single view,

Re: fresh install of cakephp 1.3, Fatal Error: Call to a member function cd()

2010-05-06 Thread Dave Stevens
I encountered this today and the fix is actually quite simple: In /app/config/core.php on line 242, set a default time zone. PHP >= 5.3 produce a warning if this is not set, which appears to be tripping cake up. On May 6, 9:27 am, mikeottinger wrote: > Great, thanks Graham, I'll follow this bug.

Multiple AJAX Forms on same page all submitting to first form.

2010-05-06 Thread Robert McWay
Hello All, I am having trouble with putting multiple ajax form instances on the same page. All the forms have the same fields, with the exception of a hidden field passing the User Id. Upon submitting the form, it always submits the form fields in the first form, regardless of which form i submit.

css not applying to my site

2010-05-06 Thread mudazer
hi this is mudazer, am new to cake php frame work,may i know why the css and js are not included in cake php frame work and also when i click any link it shows page not found,is there i need to specify a path to my files,the app folder is available in the following path / var/www/html/,help me p

Re: Multiple Undo/Redo!!

2010-05-06 Thread paws_galuten
I have been working on this code and would still like feedback. I have moved the code here: http://gist.github.com/391886 I am a cake n00b so please help me to see how this could be better! Thanks, Jason On May 5, 9:05 am, paws_galuten wrote: > yes, that makes sense too. it wastes more space,

validation works no more - cake 1.3 final

2010-05-06 Thread mivogt-LU
Hi there, since I did the upgrade from 1.3 rc1 to 1.3final I have problems validating data. Sometimes the built in validation is not processed sometimes not all validation rules are processes sometimes my custom rules are ignored All worked fine the last days. Today I did a last check before fre

Re: re-format mysql-dates - any generic solution?

2010-05-06 Thread Andrei Mita
You can use the Time helper to format the date anyway you want, I think. On Thu, May 6, 2010 at 6:33 PM, leberle wrote: > Hi, > > I'm looking for a generic way to re-format date-values i fetched from > mysqlso, the complete context: > > We have a complex cake web-app using a mysql db. So, t

Re: Bakery...arrogance or plain lack of attention

2010-05-06 Thread Sam Sherlock
on the thread "lets get rid of the bakery" a thread which turned into lets resolve the issues with bakery people interested in becoming reviewers should get in touch with Graham Weldon (AKA: predominant) - S On 6 May 2010 17:53, Jamie wrote: > How does one become a reviewer? I'd like to hel

Re: Job hunting

2010-05-06 Thread Sam Sherlock
http://cakephp.org/jobs I think that Snook had a site too for cake job offers but might be no longer available - S 2010/5/6 Alejandro Gómez Fernández > Excuse me but I don't know where can I post a cakephp job offering. > Have you any site or place where I can publi

Job hunting

2010-05-06 Thread Alejandro Gómez Fernández
Excuse me but I don't know where can I post a cakephp job offering. Have you any site or place where I can publish my offer? It's specifically for freelances jobs? Thank you in advance, Alejandro Gomez. Check out the new CakePHP Questions site http://cakeqs.org and help others with their Cake

Re: Bakery...arrogance or plain lack of attention

2010-05-06 Thread Jamie
How does one become a reviewer? I'd like to help out. - Jamie On May 6, 1:30 am, ADmad wrote: > [1] "from what i see your helper outputs a nested list which can be > achieved with HtmlHelper::nestedList or AD7six's TreeHelper behavior > which has lot more features.. rest is jquery magic not much

Re: fresh install of cakephp 1.3, Fatal Error: Call to a member function cd()

2010-05-06 Thread mikeottinger
Great, thanks Graham, I'll follow this bug. On May 5, 11:40 pm, Graham Weldon wrote: > Hmm, thanks for noticing this. > > I've filed a bug on your behalf, and we'll look at this > shortly.http://cakephp.lighthouseapp.com/projects/42648-cakephp-1x/tickets/672 > > Cheers, > Graham Weldonhttp://gra

re-format mysql-dates - any generic solution?

2010-05-06 Thread leberle
Hi, I'm looking for a generic way to re-format date-values i fetched from mysqlso, the complete context: We have a complex cake web-app using a mysql db. So, the default date- format returned by mysql is -mm-dd. This was fine for a long time. Now our lovely marketing has decided that our

Re: Execução do bake

2010-05-06 Thread Celso
Use o grupo do CAKE portugues: http://groups.google.com/group/cake-php-pt On 6 maio, 03:07, Robson Pires wrote: > Olá! > > Tentei executar o bake pelo console e acabou gerando essa mensagem de > erro: Fatal error: Class 'Shell' not found in C:\wamp\www\cake_install > \cake\console\tasks\bake.php

Re: Newbie problem with 15 minute blog in Cake 1.3

2010-05-06 Thread WebbedIT
At the risk of being wrong again, how's the issue with 1.3? The 1.3 tutorial rightly includes links to edit and delete blog posts NOT using named parameters. It's the 1.2 tutorial that wrongly, IMO, uses named parameters even though in the view section of the tutorial it clearly states to pass th

datasource and component

2010-05-06 Thread emanuele
hello fellows, data obtained from a read overidden in a datasource can be returned to a call (find) defined in a component? thanks Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribe

Re: ajax: how to use the callback?

2010-05-06 Thread Iqbal Santyaswardan
Changing my approach to this problem, I placed if(document.getElementById('sidebar').style.display=="block") { document.getElementById('sidebar').style.display="none"; } in the home page, and if(document.getElementById('sidebar').style.display=="none") { document.g

Re: Auth->user and SSL

2010-05-06 Thread Jeremy Burns
Thanks. Interestingly, the problem exists on Firefox, but not Safari. This suggests it could be a local cache issue (?) and I am investigating further. Jeremy Burns jeremybu...@me.com On 6 May 2010, at 15:00, designv...@gmail.com wrote: > I may be wrong but IIRC there is some issue with secure

Re: Auth->user and SSL

2010-05-06 Thread designv...@gmail.com
I may be wrong but IIRC there is some issue with secure/insecure cookies when switching between http and https. I found the article a while back that discussed it, I'm sure a quick google will turn it up. Also, I remebered there was a 'fix' that involved a slight change in the core (ouch) or an a

dynamic ajax pagination

2010-05-06 Thread priya dhakane
i had done pagination using ajax. But kept limit fixed. now i want to keep limit dynamic. i taken a select box,in that options for number of pages user want to keep on a page. like-10,20 etc. how to access this value for take in limit in paginate method. plz help me. Check out the new CakePHP Ques

Execução do bake

2010-05-06 Thread Robson Pires
Olá! Tentei executar o bake pelo console e acabou gerando essa mensagem de erro: Fatal error: Class 'Shell' not found in C:\wamp\www\cake_install \cake\console\tasks\bake.php on line 20 gostaria de ajuda nesse assunto, Obrigado Check out the new CakePHP Questions site http://cakeqs.org and help

Re: PHP CodeSniffer

2010-05-06 Thread accidentman
Hi Markus, I am not very familiar with codesniffer, but from what I make up from it's project page it is somewhat similar to the w3 xhtml, css, etc validation tools. Correct me if I am wrong. What is often the case with these tools is that they should be used as guidelines more than strict rules.

New to CakePHP and having an image problem

2010-05-06 Thread Lallo
Hello, I'm new to CakePHP, but have a little knowledge of PHP. I inherited a Web site that is in CakePHP and some of the images aren't working. Here is the code: get_image("simple",$listing['Commercial']['mls'], 160,120); ?> It probably is simple, but I have little knowledge of what I'm doing. A

Re: Newbie problem with 15 minute blog in Cake 1.3

2010-05-06 Thread JasonFX
I confirm that Matt isn't doing anything wrong. I am having the same issue, I installed a fresh copy of cake and followed the tutorial but stumbled on an error as described by Matt. The issue seems to be with cake 1.3 On May 4, 4:01 am, WebbedIT wrote: > @Matt: When starting with CakePHP the mai

Re: Bakery...arrogance or plain lack of attention

2010-05-06 Thread ADmad
[1] "from what i see your helper outputs a nested list which can be achieved with HtmlHelper::nestedList or AD7six's TreeHelper behavior which has lot more features.. rest is jquery magic not much too do with cake". (Thanks Andy for digging this up, i had forgotten about it). As shown I gave you a

can't modify related model's data in beforeSave when using saveAll

2010-05-06 Thread fly2279
Post hasMany Comment. Comment belongsTo Post. $this->data = array( 'Post' => array( 'title' => 'mytitle', 'text' => 'mytext') 'Comment' => array( 0 => array( 'text' => 'mytext'), 1 => array( 'text' => 'mytext') ) ); I am trying to use saveAll($this->data, array('

Auth->user and SSL

2010-05-06 Thread Jeremy Burns
I have a site that flicks to https for some actions, including when logging in. When it flicks back to http the Auth->user() variable is empty, so permissions are being denied incorrectly and the user is sent to the log in page. Any ideas for how to solve this? Are SSL and non-SSL sessions stored s

ajax: how to use the callback?

2010-05-06 Thread Iqbal Santyaswardan
Hi, I have this working: link('Home','/',array('update'=>'content')); ?> It worked in replacing the contents of . But I want to hide another div () while doing that. Looking through the docs, I surmised that I can attach the function in the callback. But how do I do that? Trying to see how it w

Re: passing more parameters leads to duplicate content

2010-05-06 Thread AD7six
On May 5, 2:19 pm, massl wrote: > On 5 Mai, 14:01, John Andersen wrote: > > > I just wonder, when the search engine goes through your site, then > > your site does not make the duplicate URLs (I assume), so the issue > > should not arise! > > > If I am wrong, please clarify :) > > Yes sure, it'

Re: Notice (8): Undefined index: id?

2010-05-06 Thread tagnu
I had this error where I had set var $primaryKey = 'ID'; in my model. Where as it was 'id' in the database. Setting it to var $primaryKey = 'id'; resolved the issue. Aurelius-2 wrote: > > > It happens when Saving a Model! > > I've no beforeX-Filters, I also had debug($this-da

Re: passing more parameters leads to duplicate content

2010-05-06 Thread AD7six
On May 6, 8:47 am, WebbedIT wrote: > I do no see how this is a problem as neither you or a search engine > would add extra unneeded parameters to a link, and if the hard coded > links do not exist in your pages then Google cannot index them > > Also anyone linking to your pages is just going to

Re: using id how to get the details

2010-05-06 Thread WebbedIT
Also ... stop flooding the forum with duplicate threads! You have so far created 7 threads to the group, with 6 of those being duplicated. Such action is only going to limit the amount of people willing to help you. Post a message and wait for a reply, if it does not come within 24 hours then you

Re: CakePHP on IIS with UrlScan on shared hosting

2010-05-06 Thread rei...@gmail.com
Luckily i resolved it myself. The solution was to add the following to my routes.php: Router::connectNamed(true, array('argSeparator'=>';')); Greetingz, Reijer On 3 mei, 14:35, "rei...@gmail.com" wrote: > Hello, > > i'm trying to setup a CakePHP applicatie on a sharedIIShosting, this > is work