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.
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
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
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
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
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
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...
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
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
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
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
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
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
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
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
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
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
@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
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
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
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
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
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 =
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
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
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
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
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' =
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
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
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]
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:
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
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
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
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
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
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
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
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
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
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
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
43 matches
Mail list logo