Re: CakePHP 1.3-beta has landed

2010-01-18 Thread Ernesto
Virtual Fields = /love @ Cake's dev team :P On 17 Gen, 05:25, mark_story mark.st...@gmail.com wrote: The CakePHP development team is happy to announce the release the CakePHP 1.3-beta. We've been hard at work implementing new features and fixing issues in existing features in the 1.3 branch.  

adding/updating additional fields in HABTM's join table

2010-01-18 Thread Ernesto
Hello. as the title says is there any way to add/update additional fields in HABTM's join table? 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 subscribed to the Google Groups

Re: Foreach loop help

2010-01-18 Thread John Andersen
Hi Dave, If I understand your issue correctly, then the following should help you on the way: [pseudo code] $maxIndex = count($properties) - 1; $skipIndex = 3; for{ $idx = 0; $idx = $maxIndex; $idx + $skipIndex ) { echo li echo $properties[$idx] data if ( $idx+1 = $maxIndex ) { echo

Re: weird bug with database field called date for a normal date (yyyy-mm-dd)

2010-01-18 Thread John Andersen
Sorry, I only meant that your issue was something similar, not the same :) Good luck hunting it down, John On Jan 17, 11:56 pm, euromark dereurom...@googlemail.com wrote: darn i was too quick after removing the model Date and all related models the same problem still occured so it must

My Cake app presented at CES keynote

2010-01-18 Thread Martin Westin
I have been working on the same Cake app for the past two years. A lot of it has been a bit hush hush but last week we were truly outed by Qualcomm. Check out our 3 min segment from the Keynote: http://www.greatconnection.se/en/ces The system transmits medical images from echo machines

cinema

2010-01-18 Thread ananthi g
Features movies, videos, news and gossip, celebs, reviews, and photos from Bollywood. more info ;http://123maza.com/25/resman456/.. 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

shared CSS and Imgs in CakePHP 1.3 Beta

2010-01-18 Thread Ernesto
Hello. every app on my server is using some shared css or images. those files are stored in localhost/shared_items/vendors/css or localhost/shared_items/vendors/images every app has the additional vendors path defined in bootstrap.php this morging i migrated from 1.3 Alpha to 1.3 Beta now...

Re: how to execute this query with cakephp

2010-01-18 Thread WyriHaximus
Afaik not thats why I wrote this function for in my appModel a while ago: http://bin.cakephp.org/view/429049354 On Jan 18, 2:52 am, Saleh Souzanchi saleh.souzan...@gmail.com wrote: Is there another way? On Jan 18, 4:46 am, Jon Bennett jmbenn...@gmail.com wrote: how to execute this query

Calling controller functions from external OR webroot files

2010-01-18 Thread Laurent Kretz
Hi all, Noob (conceptual) question here: I'm implementing RPX on my app. The workflow is this: - user clicks on sign in from an element in the header - RPX does its magic and callbacks a script on my site - this script checks if the user exists in my db, if not redirects to a complete your

Re: how to execute this query with cakephp

2010-01-18 Thread djogo
When you run a query like this, you're violating MVC practise. I'd rather $x = $model-find() $x['Model']['field']++ $model-save($x) To keep things were they're supposed to be, otherwise sometimes queries are at the model, sometimes at controller, next thing you know you're writing stored

Re: how to call Model1-find(all) from Model2 Controller

2010-01-18 Thread djogo
Class usercontroller extends appcontroller { Var $uses=array( 'Users','Projects'); } Then you can use $this-Project-find() On 17 jan, 08:10, codef0rmer amit.2006...@gmail.com wrote: thx guys. Finally, it worked :) Check out the new CakePHP Questions site http://cakeqs.org and help others

Re: My Cake app presented at CES keynote

2010-01-18 Thread John Andersen
Congratulations Martin! Way to go!! John On Jan 18, 11:23 am, Martin Westin martin.westin...@gmail.com wrote: I have been working on the same Cake app for the past two years. A lot of it has been a bit hush hush but last week we were truly outed by Qualcomm. Check out our 3 min segment

Re: Calling controller functions from external OR webroot files

2010-01-18 Thread John Andersen
Maybe you could ask LunarDraco about this, as he seems to have done something similar or something that may help you, see thread: http://groups.google.com/group/cake-php/browse_thread/thread/074cfa5a883df881 [snippet] CakeBaker: any chance you've got plans to update your Component? No, there

Re: saveAll() producing Fatal Error

2010-01-18 Thread MrDevin
So, It is now monday morning, I ma back at work and implemented your solution and it worked immediately. thanks again. 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 subscribed to the

[Media Plugin] $medium-link(css/test) not working

2010-01-18 Thread Deine Mutter
hey, i'm trying to set up my cake app in order to work together with davidpersson's media plugin. I included the plugin in my config/ bootstrap.php and included the medium.helper in my app_controller $helpers. So far so good. As adviced in the plugin's configuration manual i migrated by media

Re: cinema

2010-01-18 Thread Chad Smith
Clearly an attempt to get some link juice out of Google. Already reported the message as Spam, and we should see it removed soon. Next time, find other sources to use when trying to advertise your site. On Jan 18, 4:33 am, ananthi g gananth...@gmail.com wrote: Features movies, videos, news and

Re: My Cake app presented at CES keynote

2010-01-18 Thread Chad Smith
Hey Martin, Nice job! I too have a rather large app that we are working on with cakePHP driving the whole thing. I can't tell what it is exactly but it will be using a C/C# application to do some of the work as the program that assists the program is not written in PHP or Java. Good times

Re: My Cake app presented at CES keynote

2010-01-18 Thread Martin Westin
@John Thanks. @Chad I can't tell what it is exactly Boy, do I know that phrase! It is so nice to have it out so I don't have to mask my code and questions as much. Let me know when you can tell me more. Your app sounds intriguing. Martin On Jan 18, 2:07 pm, Chad Smith chadsmith...@gmail.com

Re: CakePHP 1.3-beta has landed

2010-01-18 Thread Celso
Is there a approximate date for the final cakephp 1.3 Version? 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 subscribed to the Google Groups CakePHP group. To post to this group, send

Re: CakePHP 1.3-beta has landed

2010-01-18 Thread Ernesto
Where should i put my shared Css' and images? (i have a single-core, multi-app environment). before 1.3Beta i was using an additiona vendors path but now it isn't working :( PS: link [7] is broken On 18 Gen, 15:04, Celso cels...@gmail.com wrote: Is there a approximate date for the final cakephp

Re: My Cake app presented at CES keynote

2010-01-18 Thread Mariano Iglesias
Congratulations! That looks like an impressive piece of work. And you are right, this shows everyone that CakePHP is not just about writing standard webapps. Thanks for sharing, and keep up the good work! Martin Westin wrote: I have been working on the same Cake app for the past two years. A

Re: adding/updating additional fields in HABTM's join table

2010-01-18 Thread Martin Westin
Of-course there is :) The trick to getting some control over the join table is the with key. http://book.cakephp.org/view/83/hasAndBelongsToMany-HABTM This tells Cake to use your class file for the join model and any methods and settings in it. Mariano also has a good write-up of how to get the

Set layout based on admin routing in app_error?

2010-01-18 Thread oleonav
Hello, I'm trying to change the layout based on the admin routing param within a custom 404 error function in app_error.php. 1. I can check for the existence of the admin routing param. It is available via $this-controller-params['admin'] 2. Can change it, for example: $this-controller-layout =

Disable browser caching in AppController - Save yourself headaches

2010-01-18 Thread keymaster
While debugging an ajax problem on IE8 which was not happening on Firefox, I determined that the different caching policies of browsers can cause real headaches sometimes. While things were working consistently great in Firefox, in IE8 ajax was behaving at times very erratic (while other times it

Re: Replacing an select/option drop down in views to a specific value.

2010-01-18 Thread Guran
Thanks - that helped 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 subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To

Some questions about ACL

2010-01-18 Thread Douglas Pacheco Cardoso
Hi, how are you? I'm a new membership... Please, i want to use ACL to do control of permissions on my system. I understand how it works, how to check permissions and more, but i don't know getting to join ideas to create one page for manage of this permissions. Example: I want to select the user

Capturing Field information before to compute before saving in database

2010-01-18 Thread Guran
Thanks to all who have taken the time to help out without being condescending or intimidating. I am a newbee and this help has encouraged me to keep on learning CakePHP. Once I get good I will help others on this forum. Now on my expense submitter i am working on - there are field1, field2, and

CSS and CakePHP

2010-01-18 Thread laceja
I'm very new to CakePHP... this is my first CakePHP program outside of the tutorials. I'm having a problem using CSS to format a input fields. For example: echo $form-input('furnace_name', array('between' = 'span class=short200', 'label' = array('text' = 'Furnace Name:'), 'div' = false, 'after' =

Re: Capturing Field information before to compute before saving in database

2010-01-18 Thread Mirko Coz
In the controller: $sum = 0; $this-data['Modelname']['field1'] *= 0.55 ; $this-data['Modelname']['hidden'] = $this-data['Modelname']['field1'] + $this-data['Modelname']['field2'] + $this-data['Modelname']['field3']; $this-Modelname-save($this-data) ; 2010/1/18 Guran guran.banga...@gmail.com

odd threaded behaviour

2010-01-18 Thread cricket
I'm having some difficulty understanding how 'fields' is supposed to work when doing a find('threaded'). The following is a method in my Comment model. Comment can be associated with either Post or Gallery, hence the 'model' 'association_key' fields. public function threaded($key = null, $model

Re: CakePHP 1.3-beta has landed

2010-01-18 Thread majna
In shared plugin (in new plugin webroot folder)? On Jan 18, 3:12 pm, Ernesto e.fanz...@gmail.com wrote: Where should i put my shared Css' and images? (i have a single-core, multi-app environment). before 1.3Beta i was using an additiona vendors path but now it isn't working :( PS: link [7]

RE: Capturing Field information before to compute before saving in database

2010-01-18 Thread Dave
Use before Save function in the model If(!empty($this-data)) { $this-data['Model']['field1'] = $this-data['Model']['field1'] * 0.55; $this-data['Model']['total'] = $this-data['Model']['field1'] + all your other fields return true; } Something like that Dave -Original Message- From:

Re: Disable browser caching in AppController - Save yourself headaches

2010-01-18 Thread euromark
actually this is a function not a variable but i guess you just forgot the parentheses so the correct call would be: $this-disableCache(); and it doesnt matter where you put it but it makes most sense to put in the end of the beforeRender() method because you only need it if you actually output

Re: CakePHP 1.3-beta has landed

2010-01-18 Thread igotskils
hey i'm developing a application in cake 1.2.5 and its almost done. What you guys think should I update now or later ? On 17 Jan., 05:25, mark_story mark.st...@gmail.com wrote: The CakePHP development team is happy to announce the release the CakePHP 1.3-beta. We've been hard at work

Re: CakePHP 1.3-beta has landed

2010-01-18 Thread euromark
inside the plugin in /webroot/... @see: http://cakephp.lighthouseapp.com/projects/42648/13-new-features-plugin-assets On 18 Jan., 22:07, majna majna...@gmail.com wrote: In shared plugin (in new plugin webroot folder)? On Jan 18, 3:12 pm, Ernesto e.fanz...@gmail.com wrote: Where should i

How do I see a SQL statement?

2010-01-18 Thread koala kid
I am getting the SQL error below but its not showing me the actual SQL statement that Cake is generating. Is there any way of seeing what it is? Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right

Re: How do I see a SQL statement?

2010-01-18 Thread Wayne Fay
I am getting the SQL error below but its not showing me the actual SQL statement that Cake is generating. Is there any way of seeing what it is? Turn on debug mode. http://cake-php.blogspot.com/2006/09/21-things-you-must-know-about-cakephp.html Wayne Check out the new CakePHP Questions site

Re: How do I see a SQL statement?

2010-01-18 Thread cricket
First, you have an extra brace there. Although that's probably a typo because you have it in an if block. Are you sure the model method is visible (ie. it's public)? I've noticed that when Cake can't find a model method it'll send the name of the method directly to dboSource, which passes it to

Re: Some questions about ACL

2010-01-18 Thread Joe L
Could I clarify, are you asking how to create an admin page to modify the user permissions? On Jan 19, 3:48 am, Douglas Pacheco Cardoso dpacheco.i...@gmail.com wrote: Hi, how are you? I'm a new membership... Please, i want to use ACL to do control of permissions on my system. I understand

Re: Security component and session timeout

2010-01-18 Thread Stinkbug
Just checking to see if anyone has any recommendations on this before I start implementing something myself. On Dec 16 2009, 10:49 pm, Stinkbug justink...@gmail.com wrote: I've been using the security component for quite some time, but there is one issue that I've never been able to figure out

Re: Some questions about ACL

2010-01-18 Thread Joe L
Hi Douglas, I believe by using Groups for authentication is one way to go with it. Firstly u could setup the permission for the GROUP as mention in Cakephp tutorial as below http://book.cakephp.org/view/648/Setting-up-permissions Then you can assign the USER(s) to that GROUP. When it comes to

Re: how to call Model1-find(all) from Model2 Controller

2010-01-18 Thread Walther
Never use $uses unless you really really really have too. See here: http://www.pseudocoder.com/archives/2009/04/16/one-more-tip-for-speeding-up-cakephp-apps/ Rather use $this-loadModel or ClassRegistry::init On Jan 18, 12:34 pm, djogo djogopat...@gmail.com wrote: Class usercontroller extends

Re: CakePHP 1.3-beta has landed

2010-01-18 Thread Ernesto
already did it. no way. i'll give it another try. On 18 Gen, 22:46, euromark dereurom...@googlemail.com wrote: inside the plugin in /webroot/... @see:http://cakephp.lighthouseapp.com/projects/42648/13-new-features-plugi... On 18 Jan., 22:07, majna majna...@gmail.com wrote: In shared