Re: the Gift of 1.2 Final

2008-12-26 Thread MrSensitive
Great news! cake has changed my life, And I hope it will continue to do so in the future.. just donated to the project. I urge anyone who is using cake in active development to do the same.. congrats on this milestone! --~--~-~--~~~---~--~~ You received this

Re: the Gift of 1.2 Final

2008-12-26 Thread gearvOsh
Ive only been used cake a couple of weeks but have been watching it for years. Ive got to say I love it the most out of the others ive tried, keep up the good work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: the Gift of 1.2 Final

2008-12-26 Thread Ketan Shah
bravo! Heartiest congratulations to the cake team. On Dec 26, 5:51 am, Gwoo gwoo.cake...@gmail.com wrote: //Warning: this message is long and full of goodies. History does not happen, it is made. Today, the history of the CakePHP grows stronger. December 25, 2008 will be remembered as one

Re: the Gift of 1.2 Final

2008-12-26 Thread seancul...@gmail.com
Congratulations, your hard work is appreciated! I 3 cakephp keep up the great work Sean On Dec 26, 4:23 pm, Ketan Shah ketan.s...@gmail.com wrote: bravo! Heartiest congratulations to the cake team. On Dec 26, 5:51 am, Gwoo gwoo.cake...@gmail.com wrote: //Warning: this message is long

problem with ACL...

2008-12-26 Thread vikas
Hi.. I am learning cakephp myself and uptill now ACL is the tuffest topic.. I am working on a project called TMS-Task Management System. In that There is groups table which has a entry like administrator,manager,developer,designer,client. And I have a users table. In which each user belongs to

can everyone use the cookBook? why is it I can't saw anything besides the memu

2008-12-26 Thread limeng
Hi, everyone . in the http://book.cakephp.org/ manual's left is blank, right side is the navigator of The Manual. every page are same. what happened about the book of cakephp. Thanks limeng --~--~-~--~~~---~--~~ You received this message because you are

Re: the Gift of 1.2 Final

2008-12-26 Thread j0n4s.h4rtm...@googlemail.com
THANK YOU! :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: Using a model without a table

2008-12-26 Thread Dr. Loboto
George, what Cake version do you use? I tried your posts test with table replacing (to users one in my case) and it was fine. Debug outputed Post::$useTable = users etc. Test with $useTable = false also was fine. Do you use hacked core or some automagic components/AppModel/ AppController or any

Re: Where to SET SQL_BIG_SELECTS=1 in cakephp

2008-12-26 Thread raphaele.gior...@gmail.com
Hello, i have the same error and would be interested to know where you set thoses parameters i you found out Thanks Raphaele On Dec 23, 3:20 pm, eMarcus marcus.er...@gmail.com wrote: Hi, As my database hoster seems to have set the limit for no of joins relativly low, I need to set the SQL

Re: Where to SET SQL_BIG_SELECTS=1 in cakephp

2008-12-26 Thread raphaele.gior...@gmail.com
I should have add that in emergency you can add line 129 of \cake\libs \model\db_acl.php that line to solve your pb $db-query('SET SQL_BIG_SELECTS=1'); i'm looking for a correct way of doing it ! On Dec 23, 3:20 pm, eMarcus marcus.er...@gmail.com wrote: Hi, As my database hoster seems to

Upgrade to 1.2 RC4 or 1.2 Final , get a Internal Server Error

2008-12-26 Thread 斜陽照
Before I press submit button in a form, I change the Controller file (xxx_Controller.php), then I press the submit, I get the Internal Server Error message. I press the back button (in browser) and press submit again, It's a normal result. Log of CakePHP have no error. Log of Apache have two

CakePHP Test Suite

2008-12-26 Thread sbogutzky
I have some problems with the TestSuite. Controller functions: function admin_view($id = null) { if (!$id) { $this-Session-setFlash(__('Invalid Article.', true)); $this-redirect(array('action'='index')); }

Wierd routing bug/issue.

2008-12-26 Thread Ketan Shah
I am facing this weird issue. My browser renders a error code 400 - Bad request when I pass a url where the controller name starts with lowercase. When I use uppercase character, it works. Is this a known issue. It happened in RC3, then I upgraded it to the final version 7962. Still the same

Re: find conditions problem (tables don't join)

2008-12-26 Thread erturne
I think you're missing the point of my blog entry! :) I realize that find() is semantically the same as using the query approach (and gives you some cake magic). In an ideal world i wouldn't use query(). The point is that find() is difficult to use. How many posts in this group have you read

Problem in model designing

2008-12-26 Thread kaushik
I am going develop a system where there is two types of members. During registration or edit profile, there will be some common fields as well as some member type specific fields. Some of the common fields are mandatory, some are not. Same is true for member type specific fields. But both type of

RE: Problem in model designing

2008-12-26 Thread Steven Wright
I would not store them in the same table. Store the common fields in one table and then use two other table to store the user type specific fields. Why do you want to store all the information in one table? -Original Message- From: cake-php@googlegroups.com

Related model confusion

2008-12-26 Thread rhythmicde...@gmail.com
I am still having a problem with related models and I cant seem to find the example that will help me figure it out. I have tables: recipes, ingredients and ingredient_lists (the SQL for these is below) The combination of ingredients and their amounts are stored in the ingredient_lists table

Related model confusion - Solved

2008-12-26 Thread rhythmicde...@gmail.com
I solved the problem. The trick is to add the ID of the ingredient like so: echo $form-input ('IngredientList.'.$x.'.id', array('type'='hidden')); You can see it in context below. ?php $x = 0; foreach($ingredient_list as $ingredient) { ? table tr td?php echo

DebugKit for 1.2 Final throws error

2008-12-26 Thread MikeB
I decided to try out the debug kit toolbar that Gwoo mentioned in the release notice and I'm getting the following error: Cannot redeclare class View in cake\libs\view\view.php on line 921 The app I'm working on doesn't have anything special and I followed the 2 instructions in the debugkit

Re: find conditions problem (tables don't join)

2008-12-26 Thread teknoid
The same argument can be made that SQL is hard to use, when you don't know SQL. I'm sure at some point in your life you've spent a few hours learning SQL. Granted, if there are deadlines and you need to get things done, then by all means use query() (that is why it's there, after all). Sure, not

Problem related to dropdown box

2008-12-26 Thread mona
How to fetch data from a database and display in dropdown box. For e.g i have one table enteries and another table name as section when i add new entry then at my add view all the section should display in dropdown box and i have section_id field in entry table because i m saving only id of the

file uploading in cake php

2008-12-26 Thread mona
In my add view i have one form which contain file upload option i want to send all the values of form in one table but file upload option is displaying error like array to string conversion because the query is like that (insert into enteries(section,list,submenu,file) values

Model association

2008-12-26 Thread mona
How to make association between three of four tables because i m fetching data on my table from three different tables --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email

How to change the layout of your pages in cake php

2008-12-26 Thread mona
I am making login page but due to default settings of cakephp my layout is not looking good i m using table on my login page but if i customize cakephp default page and delete the cakephp logo and all that things on display the contents then my layout is not looking good how to make my login page

Re: the Gift of 1.2 Final

2008-12-26 Thread teknoid
Congrats, guys! Really proud of all of your accomplishments. And of course a big THANK YOU for making my life... oh... just a little bit easier ;) On Dec 25, 7:51 pm, Gwoo gwoo.cake...@gmail.com wrote: //Warning: this message is long and full of goodies. History does not happen, it is made.

Re: file uploading in cake php

2008-12-26 Thread MikeB
Have you tried printing the array to see what it contains? The array holds everything that $_FILE[] normally would. Use these values to upload your file, then set the variable to the name of the file or whatever you want inserted into the database. Cake does not have an automagic way to handle

Re: How to change the layout of your pages in cake php

2008-12-26 Thread MikeB
function login() { $this-layout = 'newlayout'; } Should work. On Dec 26, 11:54 am, mona poojapinj...@gmail.com wrote: I am making login page but due to default settings of cakephp my layout is not looking good i m using table on my login page but if i customize cakephp default page and

Re: How to change the layout of your pages in cake php

2008-12-26 Thread MikeB
Also, more controller properties: http://book.cakephp.org/view/51/Controller-Attributes On Dec 26, 12:27 pm, MikeB bern...@gmail.com wrote: function login() {     $this-layout = 'newlayout'; } Should work. On Dec 26, 11:54 am, mona poojapinj...@gmail.com wrote: I am making login

Re: Model association

2008-12-26 Thread MikeB
var $hasmany = array('People', 'Post', 'Tag); On Dec 26, 11:51 am, mona poojapinj...@gmail.com wrote: How to make association between three of four tables because i m fetching data on my table from three different tables --~--~-~--~~~---~--~~ You received this

Re: Problem related to dropdown box

2008-12-26 Thread MikeB
http://groups.google.com/group/cake-php/browse_thread/thread/5ff7e9219837cb61/a39bdc58592a8133?lnk=gstq=dropdown+belongsto#a39bdc58592a8133 On Dec 26, 11:46 am, mona poojapinj...@gmail.com wrote: How to fetch data from a database and display in dropdown box. For e.g i have one table enteries

Re: problem with ACL...

2008-12-26 Thread Arthur Pemberton
On Fri, Dec 26, 2008 at 4:39 AM, vikas vikas...@gmail.com wrote: Hi.. I am learning cakephp myself and uptill now ACL is the tuffest topic.. I am working on a project called TMS-Task Management System. In that There is groups table which has a entry like

Odd AuthComponent behavior

2008-12-26 Thread Nick
Has anyone else seen this, it appears to only happen when using the auth component with cookies. If I have an e-mail that begins with a number, the auth component authenticates the wrong user. It takes whatever the leading number is and logs in the user with the ID of that number, instead of

RE: the Gift of 1.2 Final

2008-12-26 Thread Steven Wright
Thanks for all the hard work, its much appreciated. -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of teknoid Sent: Friday, December 26, 2008 12:04 PM To: CakePHP Subject: Re: the Gift of 1.2 Final Congrats, guys! Really proud of all of

Re: Odd AuthComponent behavior

2008-12-26 Thread Nick
Nevermind, I should have looked at the API first. I stripped some of the data I was passing to $this-Auth-login(); I changed it from $this-Auth-login($loginUser); to $this-Auth- login($loginUser['User']['id']); Its now authenticating the correct user. On Dec 26, 1:43 pm, Nick

Re: How to change the layout of your pages in cake php

2008-12-26 Thread majna
do you have problems with CSS layouts? Like aligning content to center of page, display content in two columns, header and footer or so? On Dec 26, 5:54 pm, mona poojapinj...@gmail.com wrote: I am making login page but due to default settings of cakephp my layout is not looking good i m using

Re: How to change the layout of your pages in cake php

2008-12-26 Thread Webweave
It's all CSS, so all you need to do is modify the CSS properties to what you want your site to look at. I used the default stylesheet as a starting point, and modified it to get the look and feel to match what I really want. On Dec 26, 8:54 am, mona poojapinj...@gmail.com wrote: I am making

Re: the Gift of 1.2 Final

2008-12-26 Thread Webweave
Thanks for all your hard work ! On Dec 25, 4:51 pm, Gwoo gwoo.cake...@gmail.com wrote: //Warning: this message is long and full of goodies. History does not happen, it is made. Today, the history of the CakePHP grows stronger. December 25, 2008 will be remembered as one of the most

Cakephp on MAMP, Mac OSX

2008-12-26 Thread Mickiii
I have tried to search, but I can't seem to find anything that helps me. I have installed MAMP server on my mac, running OS X 10.5.5. I have then set the ports to the default, meaning port 80 for Apache and port 3306 for MySQL. If I now go to localhost, cakephp renders correctly the initial

Re: find conditions problem (tables don't join)

2008-12-26 Thread Webweave
No, I'm not missing the point, I think it almost always takes more effort to understand a framework and use it properly than it does to bypass the framework altogether and resort to using things you are comfortable with (like choosing SQL instead of learning how to make the find sing). That's

Re: Cakephp on MAMP, Mac OSX

2008-12-26 Thread Gwoo
mod_rewrite needs to be enabled and AllowOverride All in the httpd.conf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: Import Script Help Please

2008-12-26 Thread Webweave
If you put the data into the array before you do your save, Cake does the magic under the covers to figure out if the record exists already or not. When you do the save, Cake does a lookup to figure out if the request needs to be an insert or delete (assuming you have the constraints set

Problem with multiple display fields behavior, trying to use Joins

2008-12-26 Thread Jimmy Bourassa
Hello, I'm trying to get the multiple display fields behavior to work using Cosmin Cimpoi's version (comment #7 from the bakery : http://bakery.cakephp.org/articles/view/multiple-display-field-3#comment-3114). Everything works fine if I'm not trying to fetch data from belongsTo associations.

Re: Cakephp on MAMP, Mac OSX

2008-12-26 Thread Mickiii
Thanks for your reply, I have checked the httpd.conf located in the mamp folder /mamp/conf/apache/httpd.conf, and checked for the lines: LoadModule rewrite_module modules/mod_rewrite.so DocumentRoot /Users/user_name/Development/my_app and finally that this directory has AllowOverride set to All

acl public access

2008-12-26 Thread justclint
Well first off, I friggin love cake. I finally got my ACL up and running last night. So now I'm implementing it over to my already built site and everything is working well. I am having a little issue though and I believe it has to do with this code in my app controller. function

Re: Cakephp on MAMP, Mac OSX

2008-12-26 Thread Chad Casselman
I am running the same setup. The only problem I ran into was, I extracted cake to my download folder and then copied and pasted it to where I wanted to code in it. Little did I know, the .htaccess files did not copy and paste even though I grabbed the whole directory. Extract cake to where you

Re: xampp phpeclipse dbg

2008-12-26 Thread Delirium tremens
I was finally able to install and configure a php debugger!!! http://smwforum.ontoprise.com/smwforum/index.php/Help:How_can_I_debug_XAMPP_PHP_Eclipse (the Install xampp and dbg part of the page worked) http://wiki.eistiens.net/w/PHPEclipse_:_Installation (the configuring the debugger client

Re: Cakephp on MAMP, Mac OSX

2008-12-26 Thread Mickiii
You're right, now it works like a charm. Thanks! On Dec 26, 11:45 pm, Chad Casselman ccassel...@gmail.com wrote: I am running the same setup.  The only problem I ran into was, I extracted cake to my download folder and then copied and pasted it to where I wanted to code in it.  Little did I

Run Queries Unrelated to Controller

2008-12-26 Thread Chad Casselman
I have a Controller for Jobs with a model Job. When I hit /jobs (the index function of Job Controller), I need to run a query on 2 other tables (not joined to Job) to find values to manually insert into jobs before actually displaying the index. I have tried several things but can't seem to

Re: Run Queries Unrelated to Controller

2008-12-26 Thread Arthur Pemberton
On Fri, Dec 26, 2008 at 5:14 PM, Chad Casselman ccassel...@gmail.com wrote: I have a Controller for Jobs with a model Job. When I hit /jobs (the index function of Job Controller), I need to run a query on 2 other tables (not joined to Job) to find values to manually insert into jobs before

Help Digg CakePHP 1.2 Final to the front page

2008-12-26 Thread lqdice__
For the diggers, someone posted CakePHP 1.2 story on digg. Help it make the front page http://digg.com/programming/CakePHP_1_2_Final_is_here Thanks :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group.

Re: Upgrade to 1.2 RC4 or 1.2 Final , get a Internal Server Error

2008-12-26 Thread gearvOsh
Your filename should be xxx_controller.php (no capital). If you were just typing it that way. Also why are you changing the controller before submit? This makes no sense. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Run Queries Unrelated to Controller

2008-12-26 Thread Chad Casselman
Should it bring in all hardcoded (model) associations when I import them? Here is what I have and I can't pull any fields from Sequences or PackagesSequence objects/tables var $uses = array('Package','Sequence','PackagesSequence'); $extra = array( 'recursive' = 1, //int

Re: file uploading in cake php

2008-12-26 Thread mona
thanks for the reply but when i click on add button to submit the form value in the database it is displaying the error like array to string conversion something like that how to print the value of array you me the above link but in all that page file uploading having different table different

Re: file uploading in cake php

2008-12-26 Thread MikeB
I'd like to help, but It's way too late for me to be reading that bad of a run-on sentence. Could you try rephrasing the question with some punctuation? On Dec 26, 10:04 pm, mona poojapinj...@gmail.com wrote: thanks for the reply but when i click on add button to submit the form value in the

Re: Run Queries Unrelated to Controller

2008-12-26 Thread Arthur Pemberton
On Fri, Dec 26, 2008 at 7:40 PM, Chad Casselman ccassel...@gmail.com wrote: Should it bring in all hardcoded (model) associations when I import them? Here is what I have and I can't pull any fields from Sequences or PackagesSequence objects/tables var $uses =

Re: Run Queries Unrelated to Controller

2008-12-26 Thread Webweave
In order to fetch data from both tables, you need to join them, Cake won't do this automagically. On Dec 26, 5:40 pm, Chad Casselman ccassel...@gmail.com wrote: Should it bring in all hardcoded (model) associations when I import them? Here is what I have and I can't pull any fields from

I'm not sure how to write this query...

2008-12-26 Thread Kyle Decot
I'm trying to write a query that finds how many blog posts have more then x number of tags. Could anyone provide me with an example of how to do this? I would be most grateful. Thank you as always. --~--~-~--~~~---~--~~ You received this message because you are

HTML 4 specific CakePHP?

2008-12-26 Thread gearvOsh
Honestly I really dislike the xhtml type of tags in CakePHP. There are no reasons for that, I think it would be a better idea to make it html 4 strict. Heres an article on why xhtml is retarded. http://www.webdevout.net/articles/beware-of-xhtml

Re: Containable behavior not working as expected

2008-12-26 Thread Aidan Lister
Hi Adam, The SQL being executed: SELECT `Paper`.`title`, `Paper`.`id`, `Paper`.`created`, `Volume`.`id`, `Volume`.`title`, `Volume`.`number` FROM `papers` AS `Paper` LEFT JOIN `volumes` AS `Volume` ON (`Paper`.`volume_id` = `Volume`.`id`) WHERE `Paper`.`id` = 20 AND `Paper`.`is_deleted` != 1

Re: HTML 4 specific CakePHP?

2008-12-26 Thread Arthur Pemberton
On Fri, Dec 26, 2008 at 10:54 PM, gearvOsh mileswjohn...@gmail.com wrote: Honestly I really dislike the xhtml type of tags in CakePHP. There are no reasons for that, I think it would be a better idea to make it html 4 strict. Heres an article on why xhtml is retarded.

Re: HTML 4 specific CakePHP?

2008-12-26 Thread gearvOsh
Please explain your cleanliness? HTML 4 can do everything XHTML can except self closing tags /. Also your XHTML is being parsed as HTML and removed, so whats your point? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: HTML 4 specific CakePHP?

2008-12-26 Thread Graham Weldon
Everyone has reasons for and against various technologies. Thankfully, CakePHP provides you a complete fantastic framework without limiting you to something as specific as only being able to use xhtml. You should be able to extend the html helper for all (most?) the tags you want to produce.

Re: HTML 4 specific CakePHP?

2008-12-26 Thread Arthur Pemberton
On Sat, Dec 27, 2008 at 12:32 AM, gearvOsh mileswjohn...@gmail.com wrote: Please explain your cleanliness? HTML 4 can do everything XHTML can except self closing tags /. Also your XHTML is being parsed as HTML and removed, so whats your point? What exactly is CakePHP doing that you find

Re: HTML 4 specific CakePHP?

2008-12-26 Thread gearvOsh
Most browsers dont support XHTML and most people dont even write XHTML correctly. If this is your site(http://www.pembo13.com/), your DTD is XHTML but its being parsed as HTML. So basically thats kaput, did you read the article I posted earlier? @Graham Weldon - Seems like a lot of work to

Re: I'm not sure how to write this query...

2008-12-26 Thread gearvOsh
How is your database setup? Are tags a column in the blog table or is it its own table? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To

Re: HTML 4 specific CakePHP?

2008-12-26 Thread Arthur Pemberton
On Sat, Dec 27, 2008 at 1:41 AM, gearvOsh mileswjohn...@gmail.com wrote: Most browsers dont support XHTML I don't know, all the sites where I use XHTML seem to work just fine. and most people dont even write XHTML correctly. Not exactly my problem now is it. That's kinda like saying don't

checkbox groups in cakephp 1.2

2008-12-26 Thread mike
I saw a helper class for this for 1.1, but nothing for 1.2. Is their an example of a checkbox group that maps to the same database field? for example, one checkbox maps to a value of 1, another maps to a value of 2. thanks. --~--~-~--~~~---~--~~ You received