Re: Editing/Saving to another table, HABTM: belongsTo

2008-01-02 Thread Louie Miranda
Just to make things clearer, posted my code at: http://bin.cakephp.org/saved/26686 On Dec 28 2007, 12:50 pm, "Louie Miranda" <[EMAIL PROTECTED]> wrote: > I have two sql tables: > 1. auth_users - primary_key: auth_user_id > 2. profiles - association field: auth_user_id > > means of HABTM, belongsT

Re: bug for find('All'

2008-01-02 Thread Adam Royle
$this->Tag->findAll( array('nombre' => 'LIKE %'.strtolower($tag).'%') ); On Jan 3, 12:51 pm, stefano <[EMAIL PROTECTED]> wrote: > i think that i found a bug en find('All'. > > i have this source > > echo $tag; > $res = $this->Tag->find('All',array('conditions' => array('nombre' => > "%".strto

Re: Require SSL for entire site?

2008-01-02 Thread Bryan Encina
On Dec 31 2007, 10:05 am, Robby Anderson <[EMAIL PROTECTED]> wrote: > In 1.2 at least (and quickly checking the 1.1 API, it is indeed a 1.2 > only feature), you can use the Security component's requireSecure() > method to list controller methods that must be using SSL, and then use > the blackHo

Lyricsfly releases API to their database

2008-01-02 Thread rblask
In case anyone is interested: http://lyricsfly.com/api/ --~--~-~--~~~---~--~~ 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,

Re: 1.2 generateList replacement troubles...

2008-01-02 Thread Emmanuel
On 2 jan, 22:27, Baz <[EMAIL PROTECTED]> wrote: > Register:https://trac.cakephp.org/register > > Login, then new ticket:https://trac.cakephp.org/newticket > great, thank you, reported as #3805 https://trac.cakephp.org/ticket/3805 (woah my first contribution in an opensource project ;-) ) --~--

Re: Table already exist

2008-01-02 Thread [EMAIL PROTECTED]
Are you using alter_table instead of create_table in 002? On Jan 2, 10:01 am, roryy <[EMAIL PROTECTED]> wrote: > Hi i have a question about the migrate tool of Joel Moss. > > When I want to migrate (example 001_users.yml first and then 002_users.yml) > then the script is migrating 001 succesfully

Re: 1.2 generateList replacement troubles...

2008-01-02 Thread Baz
Ticket fixed: https://trac.cakephp.org/ticket/3805 Now wasn't that easy? On Jan 2, 2008 3:27 PM, Baz <[EMAIL PROTECTED]> wrote: > Register: > https://trac.cakephp.org/register > > Login, then new ticket: > https://trac.cakephp.org/newticket > > > On Jan 2, 2008 3:07 PM, Emmanuel <[EMAIL PROTECTE

Re: bug for find('All'

2008-01-02 Thread Baz
Report all bugs to trac.cakephp.org trust me, it's much better and faster. It goes straight to the developers. On Jan 2, 2008 8:51 PM, stefano <[EMAIL PROTECTED]> wrote: > > i think that i found a bug en find('All'. > > i have this source > > echo $tag; > $res = $this->Tag->find('All',array(

bug for find('All'

2008-01-02 Thread stefano
i think that i found a bug en find('All'. i have this source echo $tag; $res = $this->Tag->find('All',array('conditions' => array('nombre' => "%".strtolower($tag)))."%"); and i get this error musica Query: SELECT `Tag`.`Array%` FROM `tags` AS `Tag` WHERE All LIMIT 1 any idea ? how can h

Re: Is there a cache in cakephp?

2008-01-02 Thread Sam Sherlock
Hi http://manual.cakephp.org/chapter/view_cache though this might have changed in 1.2, that part of the tempdocs for 1.2 has yet to be added (afaik) - S On 02/01/2008, Alfredo <[EMAIL PROTECTED]> wrote: > > > > > I know cake uses caching for the DB, but is there a cache I can use > like: > > if

Re: 1.2 generateList replacement troubles...

2008-01-02 Thread Baz
Register: https://trac.cakephp.org/register Login, then new ticket: https://trac.cakephp.org/newticket On Jan 2, 2008 3:07 PM, Emmanuel <[EMAIL PROTECTED]> wrote: > > On 2 jan, 19:34, nate <[EMAIL PROTECTED]> wrote: > > No, it's not a bug. I returned find('list') to the simple method that > > g

Re: 1.2 generateList replacement troubles...

2008-01-02 Thread Emmanuel
On 2 jan, 19:34, nate <[EMAIL PROTECTED]> wrote: > No, it's not a bug. I returned find('list') to the simple method that > generateList() was originally. ok, I understand. > To get i18n working, you probably have > to manually set the recursion level, i.e. find('list', > array('recursive' => 1)

Re: .htaccess password in CAKE

2008-01-02 Thread Mazgalici
Thanks adica Multumesc :D On 26 Noi 2007, 21:39, Dragos Chiriac <[EMAIL PROTECTED]> wrote: > Mazgalici wrote: > > Does anybody know how to put a passoword on .htaccess file for a > > direcory for examplehttp://localhost/admin? > > > Thanks > > Hi, though it seems a stupid question it is not, and

Re: Cake 1.2 Console - Missing Shells

2008-01-02 Thread Cake Fan
This screencast helped me a lot: http://cakephp.org/screencasts/view/6?detectqt=false&; I had two problems: 1) In my environment path (windows), I had a trailing slash (a big no no). I knew that wouldn't work, but didn't know the slash was in there until I went and looked again. Make sure to

Re: 1.2 generateList replacement troubles...

2008-01-02 Thread camel
I suppose 'fields' shoud be an array if you're trying to get more of them like: $subdivisions = $this->Listing->find('list', array('fields'=> array( 'Listing.subdivision, Listing.subdivision'), 'order'=>'Listing.subdivision ASC') ); I've just tried this: $this->UserGroup->find('list', __ array

Re: 1.2 generateList replacement troubles...

2008-01-02 Thread nate
No, it's not a bug. I returned find('list') to the simple method that generateList() was originally. To get i18n working, you probably have to manually set the recursion level, i.e. find('list', array('recursive' => 1)). On Jan 2, 11:59 am, Emmanuel <[EMAIL PROTECTED]> wrote: > On 2 jan, 16:54,

CakeFest website Launched

2008-01-02 Thread Mariano Iglesias
My fellow bakers, The Cake team would like to announce that the CakeFest website (related to the first official CakePHP gathering) is now available at: http://www.cakefest.org Go there to find out about CakeFest and sign up for updates. You can also become a

Re: Cake 1.2 Console - Missing Shells

2008-01-02 Thread Cake Fan
I also forgot to mention that if I place the "raw" shell script into my vendors folder above the app folder, it does show up... but my models are unavailable at that level. How can I place the raw shell script inside my app folder and actually have it show up when looking at the console. I truly

UPDATED

2008-01-02 Thread Cake Fan
I also forgot to mention that if I place the "raw" shell script into my vendors folder above the app folder, it does show up... but my models are unavailable at that level. How can I place the raw shell script inside my app folder and actually have it show up when looking at the console. I truly

Re: bakery hates me

2008-01-02 Thread Chris Hartjes
On Jan 2, 2008 12:27 PM, dr. Hannibal Lecter <[EMAIL PROTECTED]> wrote: > > I don't think posting links to Trac solves anything, it is a fact that > bakery has many issues (some minor and some..not so minor). > > Some things should be seriously reconsidered and rewritten. But that's > just my 2c.

Re: 1.2 generateList replacement troubles...

2008-01-02 Thread chad
find('list') only seems to work when using a primaryKey field. Is that intended? either way, I used the work around above and it works fine. On Jan 2, 12:09 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Jan 2, 5:59 pm, Emmanuel <[EMAIL PROTECTED]> wrote: > > > On 2 jan, 16:54, chad <[EMAIL PROTECTED

Cake 1.2 Console - Missing Shells

2008-01-02 Thread Cake Fan
I have created a shell in my vendors/shells/ folder called raw.php (Cake 1.2). The console shell stuff would be extremely helpful to me if I could get it working, but I can seem to access the shell I created (just a small test one at this point). The actual shell looks like this: --

Re: bakery hates me

2008-01-02 Thread dr. Hannibal Lecter
I don't think posting links to Trac solves anything, it is a fact that bakery has many issues (some minor and some..not so minor). Some things should be seriously reconsidered and rewritten. But that's just my 2c. --~--~-~--~~~---~--~~ You received this message bec

Fatal error in configure.php

2008-01-02 Thread Ldg27
Hi, I updated to the 1.2 beta release. When I execute my code I get this error: Fatal error: Call to a member function __buildPaths() on a non-object in (...)/cake/libs/configure.php on line 631 Any help would be appreciated. --~--~-~--~~~---~--~~ You received thi

Re: 1.2 generateList replacement troubles...

2008-01-02 Thread AD7six
On Jan 2, 5:59 pm, Emmanuel <[EMAIL PROTECTED]> wrote: > On 2 jan, 16:54, chad <[EMAIL PROTECTED]> wrote: > > > //new way of doing the above (does not work... note: subdivision is > > not a primaryKey) > > $subdivisions = $this->Listing->find('list', array('fields'=> > > 'Listing.subdivision, Li

Re: 1.2 generateList replacement troubles...

2008-01-02 Thread Emmanuel
On 2 jan, 16:54, chad <[EMAIL PROTECTED]> wrote: > //new way of doing the above (does not work... note: subdivision is > not a primaryKey) > $subdivisions = $this->Listing->find('list', array('fields'=> > 'Listing.subdivision, Listing.subdivision', > 'order'=>'Listing.subdivision ASC')); Hello i

Route::Connect and Plugins

2008-01-02 Thread foxmask
Hello In the routes.php i cant know what is the default route to the default plugins at this moment. At the startup of my app i read the database to find which is the default plugin to point to but when i write this in my main app_controller.php : public function beforeFilter() { #defini

Re: 1.2 generateList replacement troubles...

2008-01-02 Thread chad
oops fixed my own problem.. the following worked: $subdivisions = $this->Listing->find('all', array('fields'=> 'Listing.subdivision', 'order'=>'Listing.subdivision ASC')); $subs = Set::combine($subdivisions, '{n}.Listing.subdivision', '{n}.Listing.subdivision'); $this->set('subdivisions', $subs)

Is there a cache in cakephp?

2008-01-02 Thread Alfredo
I know cake uses caching for the DB, but is there a cache I can use like: if ($this->cache->notContains('something')){ $temp= onlyCallThisMethodOnce(); $this->cache->put('something', $temp); }else{ $temp=($this->cache->get('something'); } In case there isn't one, can you recomend one

Re: New Year, New Beta

2008-01-02 Thread Baz
One thing which has helped me a LOT with my upgrades is SVN. About a month ago I started working from the SVN branch rather than the pre-beta release, since a LOT of stuff has been fixed (eg. no more CleanUpFields). The CakePHP developers have been excellent in putting in very relevant comments w

1.2 generateList replacement troubles...

2008-01-02 Thread chad
Hi, Just upgraded to the newest 1.2 beta and i'm having troubles converting a generateList to the new find('list')... //worked before upgrade.. and still works but deprecated $subdivisions = $this->Listing->generateList(null,'Listing.subdivision asc',null,'{n}.Listing.subdivision','{n}.Listing.s

Re: New Year, New Beta

2008-01-02 Thread Emmanuel
On 2 jan, 11:54, Sergei <[EMAIL PROTECTED]> wrote: > Thank you. > > But, findAllThreaded() model function is broken in 1.1.19 :-( It just > doesn't fetch some child records. hum i also found that the generateList function will be deprecated, is there any reason ? I must use now something like :

Re: Protected File Download

2008-01-02 Thread Christophe Cholot
Hello, I would suggest you to store your uploaded files on your filesystem, ex : /home/yourappname/uploads/ - Use app/config/core.php or bootstrap.php to write your file storage path : Configure::write('Music.uploadPath', '/home/yourappname/uploads/ music/'); or define('MUSIC_UPLOAD_PA

Re: New Year, New Beta

2008-01-02 Thread Emmanuel
On 2 jan, 08:37, "Larry E. Masters aka PhpNut" <[EMAIL PROTECTED]> wrote: > > For this year, we would like to share CakePHP 1.2 Beta. BTW, great job, i'm using CakePHP since october, and it's a great tool! -- Manu --~--~-~--~~~---~--~~ You received this message b

[Migration] Table already exist

2008-01-02 Thread roryy
Hi i have a question about the migrate tool of Joel Moss. When I want to migrate (example 001_users.yml first and then 002_users.yml) then the script is migrating 001 succesfully but 002 gives a error: Table `users` already exists. Does someone know how I can avoid that problem? Thanks in advan

Re: PHP Fatal error: Class 'Shell' not found in .../cake/console/libs/bake.php on line 37

2008-01-02 Thread Ron Chaplin
Amen to that Brother! And don't forget to eat our CakePHP Vitamins Kiddies! Oh Yeah! On Sun, 2007-12-30 at 02:25 -0800, AD7six wrote: > > > On Dec 30, 4:14 am, labour <[EMAIL PROTECTED]> wrote: > > i need some practical knowldge in php. so send me many programming > > examples in php. help me p

Diese Seite anzeigen: " Groups in other languages"

2008-01-02 Thread powtac
Rechanged the relative URLs to absolutes... --~--~-~--~~~---~--~~ 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 t

Re: Search by relevence

2008-01-02 Thread Dr. Tarique Sani
You mean fulltext search? Read thru http://dev.mysql.com/doc/refman/5.0/en/fulltext-search.html HTH Tarique On Jan 2, 2008 6:57 PM, Nil <[EMAIL PROTECTED]> wrote: > > Hi, > > I am trying to search the records which is exactly same as the word > which I put into the input box. > > I want to se

Re: Protected File Download

2008-01-02 Thread Dr. Tarique Sani
Place the meta data of the file in a database, and the files outside the webroot then use a combination of proper headers and a call to readfile() in your code to allow for download. http://php.net/readfile <- have not looked there but this should have some sample code in the notes HTH Tarique

Protected File Download

2008-01-02 Thread Bart
Hi! (i'm a newbe) I want my site-visitors to be able after login to download an (audio/ image)file that is only for them. I have two options: uploading the files into the database or uploading the files onto the server in a folder with filedata in the DB. The first has the advantage of security

Search by relevence

2008-01-02 Thread Nil
Hi, I am trying to search the records which is exactly same as the word which I put into the input box. I want to search the records using Relevance search. Please help me. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

RE: bakery hates me

2008-01-02 Thread Mariano Iglesias
https://trac.cakephp.org -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIgle

bakery hates me

2008-01-02 Thread Adam Royle
Maybe it's just me, but I tried to add a comment to an article on the bakery, and it wouldn't show up, and didn't show a error message. So I am going to add it here. I am also going to scour the bakery source to find the root of the issue. The article: http://bakery.cakephp.org/articles/view/wa

Re: How code a edit view with a list

2008-01-02 Thread bibi
Or [code] foreach ($params['data']['Basketline'] as $Basketline) { echo $html->input("Backet/Basketline[$i]/quantite", array('size'=>'4')); [/code] Doesn't work too ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Help with application

2008-01-02 Thread Bill
Thanks Victor, I shall check them out. Bill On Jan 2, 2:21 am, vtitarchuk <[EMAIL PROTECTED]> wrote: > Hi Bill, > > I am working on localization of several open source projects into > Russian and Ukrainian. I am using several offline and online tools for > that. Check out WordForge and their onl

Re: include a login form in the header - viewed on all pages

2008-01-02 Thread the_woodsman
You need to put the results of the user->login action into your layout. There are numerous approaches, all thoroughly covered in this group, involving requestAction, so I'll just outline them, starting with 'quick and dirty': - call requestAction directly from your layout - make sure the output

Re: New Year, New Beta

2008-01-02 Thread Sergei
Thank you. But, findAllThreaded() model function is broken in 1.1.19 :-( It just doesn't fetch some child records. On Jan 2, 3:37 pm, "Larry E. Masters aka PhpNut" <[EMAIL PROTECTED]> wrote: > Beta: 1.2.0.6311http://cakeforge.org/frs/?group_id=23&release_id=372 > 1.2.0.6311 Change log:https://

Re: Problem with first cake form input name=data[....

2008-01-02 Thread the_woodsman
No, you're seeing correct behaviour. the data prefix means the posted data gets into $this->data, for handy access. The Account prefix is your model, so that you can easily get the fields for a particular model, and pass them to save, i.e: $this->Account->save($this->data['Account']); Embrace

Re: Help with application

2008-01-02 Thread vtitarchuk
Hi Bill, I am working on localization of several open source projects into Russian and Ukrainian. I am using several offline and online tools for that. Check out WordForge and their online app called Pootle. http://www.wordforge.org/drupal/ http://www.wordforge.org/drupal/projects/wordforge/tools