How about:
$params = array('contain' = 'Product.name',
'fields' = array('DISTINCT(Equipment.**product_id) AS
id', 'Product.name'),
'order' = array('Product.name'),
'group' = array('Equipment.product_id'),
'conditions' = array(
Try something like this:
$params = array('contain' = 'Product.name',
'fields' = array('DISTINCT(Equipment.product_id) AS
id', 'Product.name'),
'order' = array('Product.name'),
'group' = array('Equipment.product_id'),
'conditions' =
Have you tried using the 'Containable' behavior?
http://book.cakephp.org/1.3/view/1323/Containable
2012/7/30 Mariano C. mariano.calan...@gmail.com:
I have this json:
{
Offices:
[
{
Office:
{
address: JR street
Company:
{
id: 3,
name: ABC Software
},
},
Person:
{
id: 1,
Maybe adding the header data in the pdf layout's ctp?
2012/7/26 gloop gl...@web.de:
Its not the pdf application. The question is why cake output a text/html
header.
On Thursday, July 26, 2012 7:07:54 AM UTC+2, gua syed wrote:
try to use dompdf
On Thu, Jul 26, 2012 at 6:04 AM, gloop
Guess you could have the layout+views in an easy-to-interpret format
(maybe xml or json) when returning the data to your Android App?
2012/7/26 Lightee lightai...@gmail.com:
Dear CakePHP experts,
I am thinking of creating an Android app to talk to CakePHP server app.
Sorry for my amateur
Can you share with us the output javascript the helper creates?
2011/12/7 GG jairusk...@gmail.com
I'm trying to build a simple dynamic state / city dropdown menu that
pulls from my database... Everything is working except I cannot get
the value of the #divstate to further populate the city...
It is standard. However, CakePHP isn't built to manage multi-column PK's,
always single columned
2010/10/27 Dan dannyetdi...@gmail.com
On Oct 27, 3:07 pm, cricket zijn.digi...@gmail.com wrote:
On Wed, Oct 27, 2010 at 8:07 AM, Dan dannyetdi...@gmail.com wrote:
Structure:
Projects
-
Well, you pretty much need to write a new dbo that implements the new SQL
Server connections. If you look around in google there's this unfinished dbo
driver with still quite a few opportunity areas, but I guess it's better
than starting from scratch
2010/6/22 gbudiman wahy...@gmail.com
I've
Another problem I've come across using IIS with cake is that IIS has
problems when using : in your urls, so you'll probably need to change that
in cakephp's libs if you intend to use it for params
2010/6/22 Carlos Lavin carloslavi...@gmail.com
Well, you pretty much need to write a new dbo
But still... if a user chooses admin for slug, it would cause quite a bit of
trouble...
My guess is the only way to avoid this is to either hardcode an array of
reserved words and keep changing it as you add controllers-actions, or
simply do what u mentioned in first post about querying the ACOS
Read it before you delete it, you are trying to read a record that is
already deleted
2009/7/29 bberg bberg1...@gmail.com
thanks for the reply.
thought of that. but i'm having a hard time retrieving the $image var.
here's what i'm trying to figure out, but it doesn't work:
[code]
if
Order the resultset by created and limit the result to 1 entry
2009/7/21 Dave Maharaj :: WidePixels.com d...@widepixels.com
How would I find the newest entry added using the created date?
'conditions' = array(
'Entry.showcase_id' = $showcase_id, 'Entry.created' = not sure
how to
Yep.. looks like your missing a dot there(before the kpi_colour_id') which
Piotr pointed out
2009/7/20 Piotr Kilczuk kilc...@gmail.com
Hello,
echo $form-input('ChartsKpis.' . $kpi['Kpi']['id'] .
'kpi_colour_id');
However the resulting input has the format:
input
h() is cake's wrapper for htmlspecialchars()
http://book.cakephp.org/view/121/Global-Functions#h-703
2009/7/20 Bs sommerf...@hs-heilbronn.de
Hi,
thanks for your answer. What do you mean by h() function?
On 17 Jul., 19:13, Dr. Loboto drlob...@gmail.com wrote:
I personally validate data
$form-create('User', array('action' = 'login'))
2009/7/20 Dhileepen Chakravarthy dhileepen.cake...@gmail.com
Thank you for your reply.
But its not working.I dnt know where i did a mistake.
I am using two tables one is posts and users.
Login i use *'users' *table. inside i am using
Does anyone know how much this overhead really represents?
2009/7/19 Enrique enrique.jaco...@gmail.com
Hi Cake Fans,
just a quick note on how to use CakePHP with mod_rewrite but without
the unnecessary .htaccess overhead:
If you need it all at the end of the wizard.. you could just carry it from A
to B to C with a bunch of hiddens...not the most fancy way to do it but
neither is saving it all in session
2009/7/19 lapinski lapinski@gmail.com
Why it doesn't work for you? If you need everything fresh every
Carlos Lavin carloslavi...@gmail.com
If you need it all at the end of the wizard.. you could just carry it from
A to B to C with a bunch of hiddens...not the most fancy way to do it but
neither is saving it all in session
2009/7/19 lapinski lapinski@gmail.com
Why it doesn't work
Cake expects it to be called field_id... although im not sure that is whats
creating the problem.. give it a shot and let us know
2009/7/19 Travis marbletra...@gmail.com
fields_id is what the FK is called in the table,
I have a table called fields, when I created the foreign key in
Or just pr($_REQUEST)... cakephp's pre wrapper
http://book.cakephp.org/view/707/pr
2009/7/17 womble l.e.ad...@gmail.com
I think you may find that FB sends the fb_sig varibales in $_GET. Just
to test it, in your controller method:
echo 'pre';
print_r($_REQUEST); // or print_r($_GET);
echo
Tables are supposed to be plural (users,groups,medicinal_devices) and the
foreign keys singular(user_id,group_id...)
Change it and give it another shot =)
2009/7/17 Zoran Kovac zoko2...@gmail.com
Here are some of the table fields. it's the table USER, GROUPS and
MEDICIANL DEVICE.
In short
Or you could do it with javascript... sending a server request(+ the
framework's overhead) just to empty your fields is plain lazy programming
2009/7/17 John Andersen j.andersen...@gmail.com
For the solution to do the clearing in the controller!
Change the buttons to:
echo
Merely a wrapper for find... more documentation about it on:
http://api.cakephp.org/class/model
2009/7/16 fedekun fedekil...@gmail.com
Thanks! Hmm is there a way to do that on read instead of find?
I have... $this-Post-read(null, $id);
I cant find documentationfor read method though..i just
Club hasMany users sounds a bit less illogical.. but yeah, user belongsTo
club
2009/7/16 Piotr Kilczuk kilc...@gmail.com
Hello,
Now I have a problem with the hasOne association.
Users have a favorite club (favclub) which is a foreign key to the
Clubs (contains id and name) table. How do
24 matches
Mail list logo