Re: Cake loads FALSE values as (empty)

2011-02-03 Thread Ernesto
@ Miles J i'm masochist ;-D usually i try to strictly respect cake conventions. this is the first time i notice this behavior. cake always worked flawlessly with his empty false values On 2 Feb, 19:19, Miles J mileswjohn...@gmail.com wrote: Well, why are you even using 2.0? On Feb 2, 8:59 

Model debugging

2011-02-03 Thread Axel
Hello! Following a previous comment (http://groups.google.com/group/cake-php/ browse_thread/thread/f8a2060c617c8fb6/5f50c5ee5ebed975? hl=en#5f50c5ee5ebed975), I was starting to put the work on my data in the models instead of the controllers. Unfortunately, I have no idea how to debug what is

Re: how to set the for of date?

2011-02-03 Thread Stephen
This may help. http://www.ninjacodermonkey.co.uk/2010/11/formatting-all-dates-in-cakephp/ -- Kind Regards Stephen @ NinjaCoderMonkey www.ninjacodermonkey.co.uk -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: Model debugging

2011-02-03 Thread Jeremy Burns | Class Outfit
Type: die(debug($variable)); ...in your model, and it will stop processing and print $variable to screen. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 3 Feb 2011, at 08:35, Axel wrote: Hello! Following a previous comment

Re: Great Job on The Cookbook

2011-02-03 Thread Jens Dittrich
blue colors might look good to some people but blue is a very exhausting color for the human eye. The receptors for blue color are the smallest group in the human eye and tehrefore looking at blue backgrounds and colors is exhausting. Not the way to go for a book. On 3 Feb., 07:50, andy_the

Re: Great Job on The Cookbook

2011-02-03 Thread Jeremy Burns | Class Outfit
How much did you pay for or contribute to this 'book'? Nothing? Then I think you lose the right to criticise. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 3 Feb 2011, at 09:12, Jens Dittrich wrote: blue colors might look good to some people but blue is

Logging of PHP fatal errors not working

2011-02-03 Thread bbf
Cake 1.3.7 core.php: Configure::write('debug', 0); Configure::write('log', true); According to this page: http://book.cakephp.org/#!/view/1584/Error-logging the logging of warning and fatal errors can be handled by the Cake logs (...Would log only warning and fatal errors.). Warning errors are

Re: Great Job on The Cookbook

2011-02-03 Thread andy_the ultimate baker
cake is open source, hence every can give there views jeremy On Feb 3, 2:18 pm, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: How much did you pay for or contribute to this 'book'? Nothing? Then I think you lose the right to criticise. Jeremy Burns Class Outfit

Re: Great Job on The Cookbook

2011-02-03 Thread Jens Dittrich
really? Do you tell visitors of your websites the same? If only people who work on it are allowed to critizise, then where do you go in terms of quality? On 3 Feb., 10:18, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: How much did you pay for or contribute to this 'book'?

Re: Great Job on The Cookbook

2011-02-03 Thread Jeremy Burns | Class Outfit
I'm all for constructive criticism. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 3 Feb 2011, at 09:39, andy_the ultimate baker wrote: cake is open source, hence every can give there views jeremy On Feb 3, 2:18 pm, Jeremy Burns | Class Outfit

Re: Great Job on The Cookbook

2011-02-03 Thread Jeremy Burns | Class Outfit
There's a massive difference. We all benefit freely and greatly from other people's tireless work to deliver you a great tool that you can use to go and make money. Just calling it open source doesn't change that fact or give you extra rights. Picking holes in the colour they use for the book

Re: Great Job on The Cookbook

2011-02-03 Thread andy_the ultimate baker
I thanks the people who had given there extra ordinary efforts to built such a nice tool, and i mean it y heart. but if i m making something for someone then i m expect to get the pros and cons of that thing, otherwise just by making it i cant proove it as quality work, because at the end its all

Re: Logging of PHP fatal errors not working

2011-02-03 Thread Amit Badkas
Hi, Think again :) How can fatal error be logged when PHP is dead? Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com On Thu, Feb 3, 2011 at 2:52 PM, bbf builtbyf...@gmail.com wrote: Cake 1.3.7 core.php: Configure::write('debug', 0); Configure::write('log', true);

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-03 Thread Salines
@ keymaster Thanks, I looked it earlier @ Jeremy Burns Man, I must be inform, we have over 100,000 potential clients, each of them has an average of four offers to publish. Each submission will be translated into other European languages. We are an interesting country, which annually attracts

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-03 Thread Shinya Koizumi
If the site is going to get more ajax driven sites like facebook i wouldn't recommend to use since the framework is not ready and it will take more time to figure out. Just my opinion. On Wed, Feb 2, 2011 at 11:04 PM, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Always

Re: Great Job on The Cookbook

2011-02-03 Thread keymaster
I just went through the new cookbook. It looks great. A few cross browser problems: IE7, FF 3.0 - left navigation table of contents isn't there - perhaps this is the reason for some people complaining? Safari 4.0, Chrome 9.0 is fine. -- Our newest site for the community: CakePHP Video

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-03 Thread Dr. Tarique Sani
On Thu, Feb 3, 2011 at 3:52 PM, Shinya Koizumi sh.koiz...@gmail.com wrote: If the site is going to get more ajax driven sites like facebook i wouldn't recommend to use since the framework is not ready and it will take more time to figure out. Just my opinion. And my counter opinion is that

Re: can any one help in tool tip for icons?

2011-02-03 Thread Stephen
Hi there, I use tooltips for input boxes, you can use the same format on your links. *The view: -* ?php echo $form-input('location', array('label' = 'Location','title' = 'location', 'after' = 'div id=tooltip class=tooltip_locationPlease specify where this blind is going to be

Re: two ids in a view $id, $id

2011-02-03 Thread Dr. Tarique Sani
write the function signature of your show() as function show($groupId, $photoId) { //write your code here using $groupId and $photoId } Strongly recommend you to brush up your basics of PHP (and programming in general) - the time spent will be well worth it Cheers Tarique On Thu, Feb 3,

Re: how to validation messages next to the text field?

2011-02-03 Thread Jeremy Burns | Class Outfit
Your best bet is to modify the CSS. If you look at the classes being used (Firebug is great for this) you can amend the styles and position them where you like. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 3 Feb 2011, at 11:52, andy_the ultimate baker

Missing Behavior File

2011-02-03 Thread milotimbol
Hi, I'm new to cakephp currently trying out this plugin . https://github.com/webtechnick/CakePHP-FileUpload-Plugin I basically followed everything in the readme file. I'm just creating a simple blog app for studying purpose and I'm trying to combine it with the file upload. Here's what i did I

HABTM question, really appreciate any help!

2011-02-03 Thread Tan Cheng
I'm a newbie to Cakephp and I am trying to learn the HABTM for the post and tag example. I have set up the $hasAndBelongToMany to both post and tag models, also I have created the posts_tags join table. I added the $scaffold in the posts and tags controller, when I try to add a new post, the tags

How to learn CakePHP please guide me

2011-02-03 Thread rrvasanth
Hi friends, I am a php developer and i have experience content management system. I which to learn CakePHP so please guide me. If you know any tutorials or examples please send me. Thanks Vasanth -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out

Re: Blog example not working - need edit in View

2011-02-03 Thread david tan
Thank you folks. You are right, the problem is exactly because of phpcake 1.3. When I download the 1.2 and replace the cake folder, everything works... I don't know how, but I hope maybe someone could fix this, it's a great framework though. Thanks again. -David On Wed, Feb 2, 2011 at 8:04

Starter question

2011-02-03 Thread Mello
A created an Hello World at cakephp, the example of blog at site. And this came with some default template how can I take it off? Thanks, Mello. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

any body please help me with HABTM problem, please...

2011-02-03 Thread Tan Cheng
Hi, everyone, I am a newbie to cakephp, I am learning the HABTM, and try to see the post tag example working with the $scaffold. I have added the $hasAndBelongsToMany in both model files, but when I open the /blog/posts/add, I can never see the tags with the scaffolding. So frustrating... I

Blog tutorial not working!

2011-02-03 Thread lebert
Hi! I'm new to CakePHP, so I decided to download yesterday from the website the last stable version 1.3.7 from cakephp.org. After struggling to set everything up in my 11 hosting, and realizing that it only works when installing it in the root of my domain, not in a subfolder (if anyone knows a

Re: Blog tutorial not working!

2011-02-03 Thread Jeremy Burns | Class Outfit
See here http://articles.classoutfit.com/2009/08/setting-up-cakephp-on-a-11-server/ for a tip on getting it to work on 11. Are you certain you don't already have a Posts controller? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 3 Feb 2011, at 07:37,

A facelift for the CakePHP Book

2011-02-03 Thread Graham Weldon
The CakePHP Book[1] has undergone a major facelift and incorporates a whole range of changes to make the book more accessible and usable for all our users. The CakePHP Book[1] has held its previous design and interface since launch back in January 2008. Having lasted the test of time, we've

Re: How to learn CakePHP please guide me

2011-02-03 Thread andy_the ultimate baker
hi, welcome to cake php! first u need to learn the basics of php, without it u can move? i f u are well in php basics then first u need too read the manual of cake php. here is the link http://book.cakephp.org/view/875/x1-3-Collection#!/view/875/x1-3-Collection then just try t buit a simple

Re: Starter question

2011-02-03 Thread Stephen
Create /app/views/layouts/default.ctp Use ?php echo $content_for_layout; ? where you want your views to be loaded. On 3 February 2011 04:23, Mello jgnme...@gmail.com wrote: A created an Hello World at cakephp, the example of blog at site. And this came with some default template how can I

Re: two ids in a view $id, $id

2011-02-03 Thread chris...@yahoo.com
Thanks Tarique,... but I don't think that's possible, ... I already have tables starts with id any other sujestion...? On Feb 3, 3:41 am, Dr. Tarique Sani tariques...@gmail.com wrote: write the function signature of your show() as function show($groupId, $photoId) {   //write your code here

Re: two ids in a view $id, $id

2011-02-03 Thread Dr. Tarique Sani
Yes! trust me and write the following function in your controller and see what happens in your browser function show($groupId, $photoId) { //write your code here using $groupId and $photoId debug($groupId); debug($photoId); } Cheers Tarique On Thu, Feb 3, 2011 at 6:15 PM,

New Paul Jones Framework Benchmarks - Ahem...

2011-02-03 Thread keymaster
See this: http://www.slideshare.net/pmjones88/framework-and-application-benchmarking I love cake, but man, we ain't been doin' so well in them benchmarks. Cake 1.3 weights in 3x slower than Zend 1.10, and 2x slower than Symfony 1.4 I can somewhat understand why we are 7x slower than CI 1.7 and

Re: New Paul Jones Framework Benchmarks - Ahem...

2011-02-03 Thread Larry E. Masters
Stop relying on these useless results. If you look @ what was done you would never create an application this way. And I have already notified him that his test for CakePHP are not on level with the other apps. Sessions are started 3 helpers are loaded 1 component is loaded Sessions being

Cake 1.3 Paging with HABTM

2011-02-03 Thread acl68
Hello, I write an address organization program for my SO and myself. So I have a lot of adresses which belong to at least one user. I have problem prorgamming the search, when the user is the search criteria. Very simple: I have a HABTM connection between users and adresses. When I use 'find'

Re: A facelift for the CakePHP Book

2011-02-03 Thread euromark
and now has a 500 - internal error :) On 3 Feb., 13:11, Graham Weldon predomin...@gmail.com wrote: The CakePHP Book[1] has undergone a major facelift and incorporates a whole range of changes to make the book more accessible and usable for all our users. The CakePHP Book[1] has held its

Re: A facelift for the CakePHP Book

2011-02-03 Thread Ed Propsner
I was getting the same thing seems to have cleared up. On Thu, Feb 3, 2011 at 10:11 AM, euromark dereurom...@googlemail.comwrote: and now has a 500 - internal error :) On 3 Feb., 13:11, Graham Weldon predomin...@gmail.com wrote: The CakePHP Book[1] has undergone a major facelift and

Re: A facelift for the CakePHP Book

2011-02-03 Thread hill180
Before it went dark, I liked it. Faster, easier to search. but alas... :) On Feb 3, 2011, at 8:11 AM, euromark wrote: and now has a 500 - internal error :) On 3 Feb., 13:11, Graham Weldon predomin...@gmail.com wrote: The CakePHP Book[1] has undergone a major facelift and

Re: A facelift for the CakePHP Book

2011-02-03 Thread Larry E. Masters
We are in process of moving servers over the next few days so be patient. Another thing that has been happening this week is what I would call an attack on our domains. We found different IP's attempting to wget our content non stop and we are seeing more of this happening today with different

Re: A facelift for the CakePHP Book

2011-02-03 Thread hill180
Larry, Thank you for the effort. (don't take my comment as a dig - never meant as one) Love the new look. on a side note, we'll never get rid of script kiddies or real black hats will we :). On Feb 3, 2011, at 8:17 AM, Larry E. Masters wrote: We are in process of moving servers over the

Re: A facelift for the CakePHP Book

2011-02-03 Thread Larry E. Masters
No they will always be here. -- Larry E. Masters On Thu, Feb 3, 2011 at 9:24 AM, hill180 hill...@gmail.com wrote: Larry, Thank you for the effort. (don't take my comment as a dig - never meant as one) Love the new look. on a side note, we'll never get rid of script kiddies or real

Re: A facelift for the CakePHP Book

2011-02-03 Thread Louie Miranda
Now easier to search. Template is odd, need to get used to it. -- Louie Miranda - Email: lmira...@gmail.com - Web: http://www.louiemiranda.com On Thu, Feb 3, 2011 at 11:24 PM, hill180 hill...@gmail.com wrote: Larry, Thank you for the effort. (don't take my comment as a dig - never meant

problems in Cake

2011-02-03 Thread goluhaque
After adding the path to cake.bat to the PAth in the environment variables, when I type 'cake' in my command prompt, it says that php is not recognized as an internal or external command. What am I doing wrong? -- Our newest site for the community: CakePHP Video Tutorials

Login Form not working for noob

2011-02-03 Thread goluhaque
Hey guys, just started using CakePHP yesterday, so I guess, you may find many error in this one. My problem is, function taa_login($password = null) { $this-Session-setFlash('You are at the taa-login page.'); if(isset($this-data)){ $this-post-pass = $password; if(empty($this-data)) {

Re: problems in Cake

2011-02-03 Thread hill180
open your cmd and type php -v if you still get the error, you need to add the php binary to your windows path. is you are using wamp is should be c:\wamp\bin\php\php5.3.0 On Feb 3, 2011, at 8:40 AM, goluhaque wrote: After adding the path to cake.bat to the PAth in the environment variables,

Re: problems in Cake

2011-02-03 Thread goluhaque
Thanks, I get it. -- 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 questions. To unsubscribe from this group, send email to

Re: Login Form not working for noob

2011-02-03 Thread acl68
Hi Goluhaque, Login can be a bit complicated. Do you user the authetication component? Which version of cake do you use? have you already checked out this pages? http://tv.cakephp.org/video/jasonwydro/2011/01/29/cakephp_1_3_auth_authentication_component_tutorial_- _administrator_login

CSS Pagination Indicator

2011-02-03 Thread hill180
In the CSS is have: th a.asc:after { content: ' ⇣'; } When a pagination link is clicked: it should look like this: Before NAME AFTER NAME ⇣ But what I am getting is NAME ⇣ I know it has something to do with the encoding, just don't know where. Thanks! PS

Re: Blog tutorial not working!

2011-02-03 Thread lebert
Thank you for your reply Jeremy. Regarding the link, I already did that, and it works fine when you place the cake project at the root of where the domain points at. But if you want to place it in a sub-folder, it won't work, I tested it, even changing the RewriteBase / parameter with the

Re: CSS Pagination Indicator

2011-02-03 Thread acl68
Hi hill, which encoding do you use? I suggest utf8 and you are done! have a look in your default ctp: Do you use header(Content-Type: text/html; charset=utf-8); Anja Am Donnerstag, 3. Februar 2011, um 17:31:59 schrieb hill180: In the CSS is have: th a.asc:after { content: ' ⇣';

Re: Great Job on The Cookbook

2011-02-03 Thread cricket
On Thu, Feb 3, 2011 at 5:27 AM, keymaster ad...@optionosophy.com wrote: I just went through the new cookbook. It looks great. A few cross browser problems: IE7, FF 3.0 - left navigation table of contents isn't there - perhaps this is the reason for some people complaining? FF3.6.13/Linux

Re: how to set the for of date?

2011-02-03 Thread cricket
On Thu, Feb 3, 2011 at 1:36 AM, andy_the ultimate baker anandghaywankar...@gmail.com wrote: hi, i m working on somthing where i need to display the date and time, i m taking it from the data base but the format differs from the way i want to display it, can any one suggest how to change the

Re: two ids in a view $id, $id

2011-02-03 Thread cricket
On Thu, Feb 3, 2011 at 7:45 AM, chris...@yahoo.com chris...@yahoo.com wrote: Thanks Tarique,... but I don't think that's possible, ... I already have tables starts with id What does that mean? Are you talking about the column names in the DB? That has nothing to do with the method signature.

Re: CSS Pagination Indicator

2011-02-03 Thread cricket
On Thu, Feb 3, 2011 at 11:31 AM, hill180 hill...@gmail.com wrote: In the CSS is have: th a.asc:after {        content: ' ⇣'; } You have to escape the character in CSS's content value. Use backslash followed by the unicode position. So, \2193 for this down arrow. See here:

Re: CSS Pagination Indicator

2011-02-03 Thread hill180
The escaping worked, thanks! th a.asc:after { content: '\21a5'; } th a.desc:after { content: '\21a7'; } On Feb 3, 2011, at 10:22 AM, cricket wrote: On Thu, Feb 3, 2011 at 11:31 AM, hill180 hill...@gmail.com wrote: In the CSS is have: th a.asc:after { content: ' ⇣'; }

Re: Great Job on The Cookbook

2011-02-03 Thread Jamie
I agree - the new cookbook looks fantastic. Great job to all involved. On Feb 3, 8:59 am, cricket zijn.digi...@gmail.com wrote: On Thu, Feb 3, 2011 at 5:27 AM, keymaster ad...@optionosophy.com wrote: I just went through the new cookbook. It looks great. A few cross browser problems:

Re: CakePHP 1.3.7 released

2011-02-03 Thread Jon Bennett
Hi Sergei, I reported the bug: http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/1502-model-delete-generates-wrong-join-if-it-has-belongsto-and-hasandbelongstomany-to-the-same-model MArk commented on it and closed it. I think he's right, it does seem very odd to have 2 User

Re: CSS Pagination Indicator

2011-02-03 Thread hill180
Ok another question .. just a gee wiz If all CSS content values are required to be escaped, why not escape it in the core Cakephp 1.3.7 package? Thanks! On Feb 3, 2011, at 10:22 AM, cricket wrote: On Thu, Feb 3, 2011 at 11:31 AM, hill180 hill...@gmail.com wrote: In the CSS is have: th

Re: CSS Pagination Indicator

2011-02-03 Thread cricket
On Thu, Feb 3, 2011 at 1:50 PM, hill180 hill...@gmail.com wrote: Ok another question .. just a gee wiz If all CSS content values are required to be escaped, why not escape it in the core Cakephp 1.3.7 package? This has nothing to do with Cake, nor anything server-side in any way. Search

wich controller to use?

2011-02-03 Thread elias
Hi, Assume I have this setup: post table categories table, with a hasMany(post) the index from posts_controller shows all the post items. I want to put an overview on my page of all the categories. (Preferable directly in the layout, because I want it everywhere) Would I put this in an element

Re: CSS Pagination Indicator

2011-02-03 Thread Ryan Schmidt
On Feb 3, 2011, at 11:22, cricket wrote: On Thu, Feb 3, 2011 at 11:31 AM, hill180 wrote: In the CSS is have: th a.asc:after { content: ' ⇣'; } You have to escape the character in CSS's content value. You do not *have* to escape the character in the CSS file. That is one solution,

Re: Logging of PHP fatal errors not working

2011-02-03 Thread Ryan Schmidt
On Feb 3, 2011, at 04:20, Amit Badkas wrote: On Thu, Feb 3, 2011 at 2:52 PM, bbf wrote: According to this page: http://book.cakephp.org/#!/view/1584/Error-logging the logging of warning and fatal errors can be handled by the Cake logs (...Would log only warning and fatal errors.).

Re: Great Job on The Cookbook

2011-02-03 Thread Sam Sherlock
Its refreashing and I am very much in favour of it Its got nice function tweaks; I like the colors the main improvement I see is that its much easier and faster to move between documentation trees for each version previously this was a major PIA and now you goto 1.3 straightaway looks like

Re: Users name / changes

2011-02-03 Thread Ryan Schmidt
On Feb 2, 2011, at 22:57, Dave Maharaj wrote: Or a better example would be a teacher logs in to mark tests for the class only to see every student has changed their name to Ben Dover :) Who is who then? Figure out each student by UUID would be a nightmare with 100 students in the class. In

Re: Users name / changes

2011-02-03 Thread Ryan Schmidt
On Feb 2, 2011, at 22:06, Jeremy Burns | Class Outfit wrote: I usually make a username an email address because it is a no brainer for the user to come up with and remember FWIW, I hate sites that require me to use an email address as a username, because I have an infinite number of email

Re: Users name / changes

2011-02-03 Thread Miles J
Let them allow changes. I hate Facebooks restriction on name changes. Why should the site owners dictate how a user wants to be known? On Feb 3, 12:14 pm, Ryan Schmidt google-2...@ryandesign.com wrote: On Feb 2, 2011, at 22:06, Jeremy Burns | Class Outfit wrote: I usually make a username an

Re: Great Job on The Cookbook

2011-02-03 Thread Meroe Meroe
I agree it looks great! Thanks cake people. On Thu, Feb 3, 2011 at 1:30 AM, Dave Maharaj m...@davemaharaj.com wrote: Nice new look to the cookbook! I think it looks 100% more professional! Great job to all who made it possible. Dave -- Our newest site for the community: CakePHP

Re: wich controller to use?

2011-02-03 Thread Will Barker
Why not have function index ($category = null){ } On Fri, Feb 4, 2011 at 6:21 AM, elias elias.leco...@gmail.com wrote: Hi, Assume I have this setup: post table categories table, with a hasMany(post) the index from posts_controller shows all the post items. I want to put an overview on

Re: wich controller to use?

2011-02-03 Thread Will Barker
doh. so in posts controller: function index ($category = null){ if ($category){ // add category conditions } } And for categories just query the model, set a variable and display direct into the layout with a $cats_for_layout or in an element, if you are going to re-use it.

Re: wich controller to use?

2011-02-03 Thread elias
So I would build that into the categories controller? -- 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 questions. To unsubscribe from this group,

Re: wich controller to use?

2011-02-03 Thread Will Barker
nope, the posts controller. since you ar showing posts, just with a filter. On Fri, Feb 4, 2011 at 7:58 AM, elias elias.leco...@gmail.com wrote: So I would build that into the categories controller? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check

RE: Users name / changes

2011-02-03 Thread Dave Maharaj
I guess it's just personal preference. In the real world, you can't cross the name of your drivers license because you want to be called a different name today. Marrage / divorce are a few exceptions. There are lots of sites that restrict name changes and it's to benefit the end users or the

Re: Great Job on The Cookbook

2011-02-03 Thread skimmas
I think that there are a few problems in terms of design. The «Welcome to the Cookbook» bar seems to short for that text size and the search bar seems like it belongs from somewhere else. But I think the improvements in terms of usability are great. The menu is a lot more responsive. Thank you

uploading to cakephp from iphone app

2011-02-03 Thread Foroct
I am trying to push content to my cakePHP site from an iphone app using json. I've been successful when pushing text (like adding a new user) but I an trying to push text and an image. The problem I am having is I don't know how to include an enctype of “multipart/form- data” within the

Re: uploading to cakephp from iphone app

2011-02-03 Thread Ryan Schmidt
On Feb 3, 2011, at 15:53, Foroct wrote: I am trying to push content to my cakePHP site from an iphone app using json. I've been successful when pushing text (like adding a new user) but I an trying to push text and an image. The problem I am having is I don't know how to include an enctype

RE: Pass Controller Data Array to Element for home.ctp

2011-02-03 Thread Dave Maharaj
Pass the data in the Element array ?php echo $this-Element('search_dental_plans_results', array( 'plans' = $plans, // optional to cache the element 'cache' = true / false / duration)); ? From: OldWest [mailto:ja...@jasonwydro.com] Sent: Thursday, February 03, 2011 7:01 PM To:

Re: RE: Pass Controller Data Array to Element for home.ctp

2011-02-03 Thread OldWest
Thanks, Dave but that does not change anything : ( -- 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 questions. To unsubscribe from this group, send

RE: RE: Pass Controller Data Array to Element for home.ctp

2011-02-03 Thread Dave Maharaj
Sorry my bad, read too fast and I see you requestAction is actually inside the element so your not needing to pass anything since the element is actually getting the data. Never used requestAction so check the cookbook for that specific one. Also do a quick $plans =

RE: Pass Controller Data Array to Element for home.ctp

2011-02-03 Thread Dave Maharaj
Nothing is getting returned right? Your paginate is commented out $this-set('plans', $plans); //is going to return nothing. Since $plans = $this-paginate(); is commented out function index() {     $plans = $this-paginate('Plan');         $this-set('plans', $plans); //worry about the if

Question about chained tables with grandson, father and grandfather relations.

2011-02-03 Thread Alejandro Gómez Fernández
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everybody! I have a question about how to do to show a data field of a grandfater table in the grandson's views (add, delete, edit and list) An example: myforms father grandfather - ---

Re: Logging of PHP fatal errors not working

2011-02-03 Thread Dr. Loboto
Cake's logging settings can work only when Cake is working. If PHP dies on parse error it just don't reach Cake setup code at all. Same about fatal error before Cake sets own log. Etc. You better read PHP docs before blame Cake ones. -- Our newest site for the community: CakePHP Video Tutorials

Understanding the M in MVC?

2011-02-03 Thread Michael Carriere
Hello everyone! When recently approached to do some web development for a game whose code base was in dire need of a rewrite, I was determined on finding a stable, community supported framework to help speed up the process. I appreciate Cake's file organization, the way layouts are controlled,

Re: Logging of PHP fatal errors not working

2011-02-03 Thread Ryan Schmidt
On Feb 3, 2011, at 22:01, Dr. Loboto wrote: Cake's logging settings can work only when Cake is working. If PHP dies on parse error it just don't reach Cake setup code at all. Same about fatal error before Cake sets own log. Etc. You better read PHP docs before blame Cake ones. So are you

Log off other users with Auth

2011-02-03 Thread Henrik Gemal
I use Auth on one of my websites. When I change another users password I like the other user to get logged off. How do I do that? -- 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

Re: Questions from a Hong Kong CAKEPHP user

2011-02-03 Thread Andras Kende
Would this work : http://cakephp.1045679.n5.nabble.com/ ? Andas Kende http://www.kende.com On Feb 3, 2011, at 1:39 PM, Nald Chow wrote: Hi everyone, this is my first ever post in this forum (as well as in Google groups.) I've been playing with CAKEPHP on my own these days, great that i

Questions from a Hong Kong CAKEPHP user

2011-02-03 Thread Nald Chow
Hi everyone, this is my first ever post in this forum (as well as in Google groups.) I've been playing with CAKEPHP on my own these days, great that i can find lot of resources online, this forum included. However, google groups is banned from China, therefore I can't access this group when i'm in

Re: Questions from a Hong Kong CAKEPHP user

2011-02-03 Thread Ryan Schmidt
On Feb 3, 2011, at 13:39, Nald Chow wrote: this is my first ever post in this forum (as well as in Google groups.) I've been playing with CAKEPHP on my own these days, great that i can find lot of resources online, this forum included. However, google groups is banned from China, therefore

Re: Log off other users with Auth

2011-02-03 Thread Ryan Schmidt
On Feb 3, 2011, at 15:17, Henrik Gemal wrote: I use Auth on one of my websites. When I change another users password I like the other user to get logged off. How do I do that? The way that occurs to me: On every page load, you'd have to check the database and verify that the password the

Re: Understanding the M in MVC?

2011-02-03 Thread andy_the ultimate baker
will u please make it short and approachable to ur point, becouse no one is having to read a long theses of ur query on the work so please make it shor and come in pints, so it would be fine to give u answer regards andy On Feb 3, 7:12 pm, Michael Carriere m...@zapdot.com wrote: Hello everyone!

Re: Logging of PHP fatal errors not working

2011-02-03 Thread Dr. Tarique Sani
On Fri, Feb 4, 2011 at 10:19 AM, Ryan Schmidt google-2...@ryandesign.com wrote: On Feb 3, 2011, at 22:01, Dr. Loboto wrote: Cake's logging settings can work only when Cake is working. If PHP dies on parse error it just don't reach Cake setup code at all. Same about fatal error before Cake

Re: Understanding the M in MVC?

2011-02-03 Thread ibejohn818
Model-View-Controller Model is data. Cakephp's model layer uses a programming technique called ORM (Object- Relational-Mapping) http://en.wikipedia.org/wiki/Object-relational_mapping If you are familiar with python then it would be comparable to sqlalchemy but just not as many features and

Re: Understanding the M in MVC?

2011-02-03 Thread Jeremy Burns | Class Outfit
Michael I find the model structure very flexible. I generally set recursive to -1 (this means my starting point is this record and none of its associations), and use the Containable behaviour; both of these are set in my custom app_model.php file, which means they apply to all models by

Re: Understanding the M in MVC?

2011-02-03 Thread Ryan Schmidt
Welcome! On Feb 3, 2011, at 08:12, Michael Carriere wrote: • How magical is the find() function? Should I be able to run one exhaustive query and get back all the nested data that I need for a View to spit out? I guess a better question would be: do you find yourself calling find()

Re: Logging of PHP fatal errors not working

2011-02-03 Thread Amit Badkas
Hi, You can log all the errors including fatal ones by using 'error_log' setting in php.ini, for example, my php.ini has log_errors = On error_log = /home/amit/Web/demos/php/logs/php_errors.log Then if there is any fatal error, I get an entry in php_errors.log like [04-Feb-2011 10:48:57] PHP

Re: Understanding the M in MVC?

2011-02-03 Thread Sam Sherlock
M = Model Interaction with data stored in a database or via a datasource (eg the twitter example) Dropping assocs on the fly is easier than building them on the fly You set the associations as they would generally be needed between models within your app Your setting you app up to be able to

confused! need urgent help.

2011-02-03 Thread andy_the ultimate baker
hi, good morning, since i morning i am working on one index view where i want to display the country. ithe the view i m getting sate and city with its respective code properly, but the country is not displaying here is my code ?php echo $this-Html-link($city['Country']['title'],

Re: confused! need urgent help.

2011-02-03 Thread Jeremy Burns | Class Outfit
I am almost tempted to say: will u please make it short and approachable to ur point, becouse no one is having to read a long theses of ur query on the work so please make it shor and come in pints, so it would be fine to give u answer ...but I won't. What do you see when you do: ?php

Open Flash Chart Helper version 3

2011-02-03 Thread Name256
Hello, I have been testing the ofc helper in drawing line charts and had a difficult time getting it to work but I eventually got many of the essential stuff running. The only essential thing that I am having difficulty with right now is setting the tooltip on the linechart. I have looked at a

Re: Understanding the M in MVC?

2011-02-03 Thread Ryan Schmidt
On Feb 3, 2011, at 23:36, Sam Sherlock wrote: On Feb 3, 2011, at 23:22, Ryan Schmidt wrote: It's still unclear to me what the best way is to, for example, define additional variables that go with a particular record. My first impulse was to define an instance variable in the Model, but

  1   2   >