Cake2 + AMF

2012-02-08 Thread Henrique Machado
I'm looking for a PHP library to handle AMF communication with a Flash
client app. My server will be running PHP 5.3.5 and a cake2 app.

I tried the cakeAMF, cakeAMFPHP and Cpamf cake plugins but they all are
pretty old and not updated anymore.

Have you successfull used something with cake2 and AMF?


Thank you


Att,

Henrique Machado
ITIL V3 Certified

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: help me

2011-01-19 Thread Henrique Machado
LOL


Att,

Henrique Machado
TI Expert



2011/1/19 Zaky Katalan-Ezra procsh...@gmail.com:
 I just love this post
 http://slash7.com/2006/12/22/vampires/

 --
 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
 cake-php+unsubscr...@googlegroups.com For more options, visit this group at
 http://groups.google.com/group/cake-php


-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Polymorphic BUG? find() in beforeSave()

2010-09-15 Thread Henrique Machado
Please somebody can help with it? I've provided all scenario, something
wrong with my question?


Att,

Henrique Machado
TI Expert


2010/9/15 Henrique Machado henri@gmail.com

 Hello everybody!

 After a whole day trying to make my application work correctly, asking for
 help on IRC and some friends, I concluded that I found a bug in polymorphic
 Behaviour.

 My Scenario:

 The Picture is my Polymorphic Model:
 Picture model: http://bin.cakephp.org/view/1085677267

 Family hasOne Banner (Banner is an alias to Picture that is polymorphic)
 Family hasOne icon (Icon is an alias to Picture that is polymorphic)
 Family model: http://bin.cakephp.org/view/2133641829
 Family controller: http://bin.cakephp.org/view/827099383
 Family add_view: http://bin.cakephp.org/view/478488471
 Family edit_view: http://bin.cakephp.org/view/751543170

 When I add a Family I Can add a Banner or Icon or Both relationed too. This
 is working great, the picture is uploaded and the records are saved in the
 pictures table.

 When I delete a Family, the Banner or the Icon or Both Should be deleted
 from table (Pictures) and files Should Be unliked. This is working great
 too.

 The problem is when I'm editing Family. I tried many ways to get it
 working with find(), read() at BeforeSave () afterSave(), but i can not get
 it.

 This is the debug on beforeSave (When Works)
 http://bin.cakephp.org/view/2145699735

 This is the debug on beforeSave (When Bug)
 http://bin.cakephp.org/view/135653162

 Please Note that when it fail, the ID is THE SAME for both (here is the
 bug) Banner and Icon, array looks mixed up (both Have type = icon)

 Sometimes, the Behaviour Appears to be mixing arrays when updating both
 (Icon and Banner) .. But sometimes work.. looks random.

 It's the Behaviour? Or I'm missing something?

 Thanks in advance


 Att,

 Henrique Machado
 TI Expert


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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Polymorphic BUG? find() in beforeSave()

2010-09-15 Thread Henrique Machado
EDIT:
Some news.. i've deatached the polymorphic behaviour and the problem
continues...

What can be? that $this-file = $this-find($this-id); inside before save
sometimes returns the same id for Banner and Icon:

class Picture extends AppModel {
var $name = 'Picture';

function beforeDelete() {
$this-file = $this-read(null, $this-id);
return true;
}

function afterDelete() {
foreach($this-file as $file):
unlink('files'.DS.$file['path']);
endforeach;

return true;
}

function beforeSave() { //for edit(update)
if($this-id) {
$this-file = $this-find($this-id);
}
return true;
}

function afterSave() { //for edit(update)

if(!empty($this-file)) {
foreach($this-file as $file):
unlink('files'.DS.$file['path']);
endforeach;
}
return true;
}
}


Line model:
?php
class Line extends AppModel {
var $name = 'Line';
var $displayField = 'name';
var $actsAs = array('Sluggable' = array('separator' = '-', 'overwrite'
= true, 'label' = 'name','translation' = 'utf-8'));
//The Associations below have been created with all possible keys, those
that are not needed can be removed

var $hasMany = array(
'Family' = array(
'className' = 'Family',
'foreignKey' = 'line_id',
'dependent' = false,
)
);
var $hasOne = array(
'Banner' = array(
'className' = 'Picture',
'foreignKey' = 'foreign_id',
'conditions' = array('Banner.class' = 'Line', 'Banner.type' =
'banner'),
'dependent' = true,
),
'Icon' = array(
'className' = 'Picture',
'foreignKey' = 'foreign_id',
'conditions' = array('Icon.class' = 'Line', 'Icon.type' =
'icon'),
'dependent' = true,
),
);
}
?


Att,

Henrique Machado
TI Expert


2010/9/15 Henrique Machado henri@gmail.com

 Please somebody can help with it? I've provided all scenario, something
 wrong with my question?



 Att,

 Henrique Machado
 TI Expert


 2010/9/15 Henrique Machado henri@gmail.com

 Hello everybody!

 After a whole day trying to make my application work correctly, asking for
 help on IRC and some friends, I concluded that I found a bug in polymorphic
 Behaviour.

 My Scenario:

 The Picture is my Polymorphic Model:
 Picture model: http://bin.cakephp.org/view/1085677267

 Family hasOne Banner (Banner is an alias to Picture that is polymorphic)
 Family hasOne icon (Icon is an alias to Picture that is polymorphic)
 Family model: http://bin.cakephp.org/view/2133641829
 Family controller: http://bin.cakephp.org/view/827099383
 Family add_view: http://bin.cakephp.org/view/478488471
 Family edit_view: http://bin.cakephp.org/view/751543170

 When I add a Family I Can add a Banner or Icon or Both relationed too. This
 is working great, the picture is uploaded and the records are saved in the
 pictures table.

 When I delete a Family, the Banner or the Icon or Both Should be deleted
 from table (Pictures) and files Should Be unliked. This is working great
 too.

 The problem is when I'm editing Family. I tried many ways to get it
 working with find(), read() at BeforeSave () afterSave(), but i can not get
 it.

 This is the debug on beforeSave (When Works)
 http://bin.cakephp.org/view/2145699735

 This is the debug on beforeSave (When Bug)
 http://bin.cakephp.org/view/135653162

 Please Note that when it fail, the ID is THE SAME for both (here is the
 bug) Banner and Icon, array looks mixed up (both Have type = icon)

 Sometimes, the Behaviour Appears to be mixing arrays when updating both
 (Icon and Banner) .. But sometimes work.. looks random.

 It's the Behaviour? Or I'm missing something?

 Thanks in advance


 Att,

 Henrique Machado
 TI Expert




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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Polymorphic BUG? find() in beforeSave()

2010-09-14 Thread Henrique Machado
Hello everybody!

After a whole day trying to make my application work correctly, asking for
help on IRC and some friends, I concluded that I found a bug in polymorphic
Behaviour.

My Scenario:

The Picture is my Polymorphic Model:
Picture model: http://bin.cakephp.org/view/1085677267

Family hasOne Banner (Banner is an alias to Picture that is polymorphic)
Family hasOne icon (Icon is an alias to Picture that is polymorphic)
Family model: http://bin.cakephp.org/view/2133641829
Family controller: http://bin.cakephp.org/view/827099383
Family add_view: http://bin.cakephp.org/view/478488471
Family edit_view: http://bin.cakephp.org/view/751543170

When I add a Family I Can add a Banner or Icon or Both relationed too. This
is working great, the picture is uploaded and the records are saved in the
pictures table.

When I delete a Family, the Banner or the Icon or Both Should be deleted
from table (Pictures) and files Should Be unliked. This is working great
too.

The problem is when I'm editing Family. I tried many ways to get it working
with find(), read() at BeforeSave () afterSave(), but i can not get it.

This is the debug on beforeSave (When Works)
http://bin.cakephp.org/view/2145699735

This is the debug on beforeSave (When Bug)
http://bin.cakephp.org/view/135653162

Please Note that when it fail, the ID is THE SAME for both (here is the bug)
Banner and Icon, array looks mixed up (both Have type = icon)

Sometimes, the Behaviour Appears to be mixing arrays when updating both
(Icon and Banner) .. But sometimes work.. looks random.

It's the Behaviour? Or I'm missing something?

Thanks in advance


Att,

Henrique Machado
TI Expert

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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


User HABTM User/Firend (Social Network )

2010-07-02 Thread Henrique Machado
I need a system that associate users from one single table making them
friends. Until now, everything goes fine. The problem is when the user 1 is
friend of user 2, cake don't understand that user 2 is friend of user 1 too.

Is there a way to tell Cake to make a reverse query? Or I need to insert
two records in the table (user_id = 1, friend_id = 2 and user_id = 2,
friend_id = 1)?

I'll try to explain better:

I created tables: USERS and USERS_FRIENDS.

*USERS fields:*

- id, name

*USERS_FRIENDS fields:*

- id, user_id, friend_id

*user.php Model:*


var $hasAndBelongsToMany = array(
'Friend' = array(
'className' = 'User',
'joinTable' = 'users_friends',
'foreignKey' = 'user_id',
'associationForeignKey' = 'friend_id',
'with' = 'UsersFriend',
'unique' = false
)
);

*users_friend.php Model:*


var $belongsTo = array(
'Friend' = array(
'className'= 'Friend',
'joinTable' = 'users',
'foreignKey' = 'friend_id',
),
'User' = array(
'className'= 'User',
'joinTable' = 'users',
'foreignKey' = 'user_id',
)
);

Sorry my english.

Thanks for help!


Att,

Henrique Machado
TI Expert

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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Data Validation not working

2010-03-18 Thread Henrique Machado
Linux is case sensitive, windows isn't

At Linux, You can have at the same directory the files: inventory.php and
Inventory.php

Henrique Machado
TI Expert


2010/3/19 SeeVik vikramvmalhotra1...@gmail.com

 Hello all

 Thanks for guiding me out of this problem.

 @ Dr. Loboto - Yes that was the problem. The model filename was
 Inventory.php. As soon as I changed it to inventory.php, it worked
 like a charm. Although why it worked on Windows local server and not
 on Linux web server is what I don't get. Anyway, as long as the
 problem is solved I won't complain.

 Thanks a lot.
 ShiVik

 On Mar 18, 12:08 am, logout stefano...@gmail.com wrote:
  I also vote for problems in the path/filename.
 
  Be sure exactly what file you edit (the model) - I had exactly the
  same problem - it turned out that i was editing a wrong file.
  When I opened the correct one, all worked fine.
 
  Your file for the model is inventory.php in the app/models, right?

 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 unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

 To unsubscribe from this group, send email to cake-php+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.


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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe from this group, send email to 
cake-php+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: Star Rating Help

2009-05-28 Thread Henrique Machado
Great work!

Henrique Machado



2009/5/27 schneimi michael.schne...@arcor.de


 I read about some bakery criterias the plugin doesn't match (like
 styles and tests), but you are right, I could give it a try anyway.

 You're welcome to use it. Btw I just put up a new version that also
 supports jQuery.

 Regards,
 Michael

 Dardo Sordi Bogado schrieb:
   Because I am not sure about the requirements for the bakery, I just
   put it on my blog:
 
  I couldn't see anything that can prevent your blog post from being a
  good Bakery article, why don't just give it a try?
 
   Let me know what you think about it.
 
  I'm testing it now, I think it could be useful for me in my current
  project, thanks!
 
  Regards,
  - Dardo.
 


--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Star Rating Help

2009-05-21 Thread Henrique Machado
I never saw a decent solution to the cake when it comes to star rating

Henrique Machado



2009/5/21 Faza f...@ansi.pl


 I'd start with removing DB connection related settings and replace all
 querying to Cake functions - they all look like basic selects/inserts.

 Also you could divide whole this code into some controller functions to
 tidy it up.

 Or read the code, understand it, and make a helper from scratch in
 proper cake way :P

 cake_baker pisze:
  hey guys i searched the whole google i coudnt find any star rating
  helper for cakephp i found two they are oudated
 
  i found a star rating called ajaxstarrater_v122 its php and it stores
  it in database and i have no idea how to implement it to cakephp if
  some help here thank you in advance
 
  these are some code give u ideas
 
 
  this is the databse file
 
  ?php
  /*
  Page:   _config-rating.php
  Created:Aug 2006
  Last Mod:   Mar 18 2007
  Holds info for connecting to the db, and some other vars
  -
  ryan masuga, masugadesign.com
  r...@masugadesign.com
  Licensed under a Creative Commons Attribution 3.0 License.
  http://creativecommons.org/licenses/by/3.0/
  See readme.txt for full credit details.
  - */
 
//Connect to  your rating database
$rating_dbhost= 'localhost';
$rating_dbuser= 'root';
$rating_dbpass= 'root';
$rating_dbname= 'rating';
$rating_tableName = 'ratings';
$rating_path_db   = ''; // the path to your db.php file (not
 used
  yet!)
$rating_path_rpc  = ''; // the path to your rpc.php file (not
  used yet!)
 
$rating_unitwidth = 30; // the width (in pixels) of each rating
  unit (star, etc.)
// if you changed your graphic to be 50 pixels wide, you should
  change the value above
 
  $rating_conn = mysql_connect($rating_dbhost, $rating_dbuser,
  $rating_dbpass) or die  ('Error connecting to mysql');
//mysql_select_db($rating_dbname);
 
  ?
 
 
 
  this _drawrating.php
 
 
  ?php
  /*
  Page:   _drawrating.php
  Created:Aug 2006
  Last Mod:   Mar 18 2007
  The function that draws the rating bar.
  -
  ryan masuga, masugadesign.com
  r...@masugadesign.com
  Licensed under a Creative Commons Attribution 3.0 License.
  http://creativecommons.org/licenses/by/3.0/
  See readme.txt for full credit details.
  - */
  function rating_bar($id,$units='',$static='') {
 
  require('_config-rating.php'); // get the db connection info
 
  //set some variables
  $ip = $_SERVER['REMOTE_ADDR'];
  if (!$units) {$units = 10;}
  if (!$static) {$static = FALSE;}
 
  // get votes, values, ips for the current rating bar
  $query=mysql_query(SELECT total_votes, total_value, used_ips FROM
  $rating_dbname.$rating_tableName WHERE id='$id' )or die( Error:
  .mysql_error());
 
 
  // insert the id in the DB if it doesn't exist already
  // see:
 http://www.masugadesign.com/the-lab/scripts/unobtrusive-ajax-star-rating-bar/#comment-121
  if (mysql_num_rows($query) == 0) {
  $sql = INSERT INTO $rating_dbname.$rating_tableName
  (`id`,`total_votes`, `total_value`, `used_ips`) VALUES ('$id', '0',
  '0', '');
  $result = mysql_query($sql);
  }
 
  $numbers=mysql_fetch_assoc($query);
 
 
  if ($numbers['total_votes']  1) {
$count = 0;
  } else {
$count=$numbers['total_votes']; //how many votes total
  }
  $current_rating=$numbers['total_value']; //total number of rating
  added together and stored
  $tense=($count==1) ? vote : votes; //plural form votes/vote
 
  // determine whether the user has voted, so we know how to draw the ul/
  li
  $voted=mysql_num_rows(mysql_query(SELECT used_ips FROM $rating_dbname.
  $rating_tableName WHERE used_ips LIKE '%.$ip.%' AND id='.$id.'
  ));
 
  // now draw the rating bar
  $rating_width = @number_format($current_rating/$count,2)*
  $rating_unitwidth;
  $rating1 = @number_format($current_rating/$count,1);
  $rating2 = @number_format($current_rating/$count,2);
 
 
  if ($static == 'static') {
 
$static_rater = array();
$static_rater[] .= \n.'div class=ratingblock';
$static_rater[] .= 'div id=unit_long'.$id.'';
$static_rater[] .= 'ul id=unit_ul'.$id.'
 class=unit-rating
  style=width:'.$rating_unitwidth*$units.'px;';
$static_rater[] .= 'li class=current-rating
 style=width:'.
  $rating_width.'px;Currently '.$rating2.'/'.$units.'/li';
$static_rater[] .= '/ul';
$static_rater[] .= 'p class=static'.$id.'. Rating:
 strong '.
  $rating1.'/strong/'.$units.' ('.$count.' '.$tense.' cast) emThis
  is \'static\'./em/p';
$static_rater[] .= '/div';
$static_rater[] .= '/div'.\n\n

Re: Poll: what do you hate about CakePHP?

2009-05-18 Thread Henrique Machado
What about create a true poll for it?

First create a poll for all suggestions, after create a poll to vote on that
suggestions and voilá =)

Henrique Machado



2009/5/18 Aivaras faifas1...@gmail.com

 Hey,

 actually the most annoying thing is that we cannot download separate parts
 of Cake. It would be cool if advanced users could choose what do they need
 for their project, just like mootools made in their download page. I
 certainly understand that this is just *wishful thinking* because Cake's
 core uses nearly everything :x

 Anyway, upload component would be totally usable!

 Also, switching from scriptaculous + prototype to jQuery would be awesome.
 People would create and share plugins, which means that our lovely community
 would become even bigger and ADmad would be even more mad (sorry AD :x)

 Enjoy,
 Faifas



 On Sat, May 16, 2009 at 06:00, Brendon Kozlowski 
 brendon...@hotmail.comwrote:


 Thought of another one.

 Paginate settings, and paginate call.  Why do they have the same
 name?  When learning how Cake works, although it's proper OOP to do
 so, it's a bit confusing to see:

 $this-paginate = array('contain' = 'User');
 $this-set('posts', $this-paginate());

 I think it would be clearer (from a name the variable what it is
 type of coding style) to use something like:
 $this-paginateOptions = array('contain' = 'User');

 Every time I see $this-paginate when skimming through code, I
 immediately see the method, completely forgetting it's also a
 property.  I hate that.  ;)



 


--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Translate Behavior

2009-04-24 Thread Henrique Machado
Hello Guys..

I'm two days tryin to understand and trying to get Translate Behavior
working..

I've folowing the manual (http://book.cakephp.org/view/92/Translate)

OK, i have a table i18n and my model is ok.

After few hours looking for a example how to translate my records i found
this test:

http://www.mibbit.com/pb/pUw02l


Ok, now i can understand a bit, but:

If i'm adding a new record, like a post, how can i make title field an
array?

Is two forms?

I'm lost..

ty

Henrique Machado

--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Translate Behavior

2009-04-24 Thread Henrique Machado
Thank you!

Is that =)



Henrique Machado



2009/4/24 jitka (poLK) slunii...@gmail.com


 $label = __('Title', true);
 echo $form-input('Post.title.cze', array('type' = 'text', 'label' =
 $label . ' (cze)'));
 echo $form-input('Post.title.eng', array('type' = 'text', 'label' =
 $label . ' (eng)'));

 


--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: New CakePHP book available.

2009-04-02 Thread Henrique Machado
I bought XD

2009/4/1 Ma'moon phpir...@gmail.com

 Thats awesome, Thank you very much, and welcome back :-)

 On Wed, Apr 1, 2009 at 4:42 PM, GrumpyCanuck chart...@gmail.com wrote:


 I'm back!

 Some of you might remember me from my previous stint on the CakePHP
 mailing list, answering questions with my usual grumpy flair.  I took
 a step away from the list when I realized I was not being very helpful
 or productive.  Anyway, I'm back on the list and trying to be a better
 community member.

 While I was gone I managed to write a self-published book called
 Refactoring Legacy Applications Using CakePHP.  61 pages of goodness
 for only $10 for a PDF, $19.53 for a print-on-demand copy via
 Lulu.com.  You can check out a sample chapter by visiting the site --
 http://www.littlehart.net/book

 --
 Chris Hartjes
 http://www.littlehart.net/atthekeyboard





 --
 http://phpirate.net

 


--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Release: 1.2.2.8120

2009-03-19 Thread Henrique Machado
Great!

Good Job!

2009/3/19 joshua josh...@gmail.com

 Many thanks to CakePHP team's work!

 On Fri, Mar 20, 2009 at 6:25 AM, Gwoo gwoo.cake...@gmail.com wrote:


 CakePHP still rising!

 We are excited to announce the release of CakePHP 1.2.2.8120[1]. The
 latest stable release fixes several bugs including a security issue
 with paginator links. While this issue should only affect a small
 number of people, we highly recommend everyone upgrade to this stable
 version. We do not expect any incompatibilities with your current
 code, but as always check out the changelog[2] to see all the issues
 that were fixed
 With several releases of CakePHP 1.2 behind us we can now being to
 focus our attention on the next versions. So, without further ado, we
 are happy to share the official git repository,
 http://thechaw.com/cakephp

 For now, we are working on 1.3 with several feature branches, with
 master on the latest stable (1.2.2.8120) and the 1.2 branch as the
 development of the stable version. We will continue to accept tickets
 to https://trac.cakephp.org, but this will also change once we have a
 chance to migrate the old tickets. We ask that NO tickets be submitted
 on 1.3 unless it is an enhancement. These tickets should also be
 submitted to trac.

 Hopefully, you are as excited as we are with all the new developments.
 Stop by #cakephp on irc.freenode.net, if you have any questions.

 Bake on!

 [1] http://cakeforge.org/frs/?group_id=23release_id=441
 [2] http://trac.cakephp.org/wiki/changelog/1.2.x.x




 --
 Thanks
 Joshua


 


--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: What do you develop in (ide, text editor, etc.)?

2009-03-02 Thread Henrique Machado
Notepad++ for everything

2009/3/2 Samuel DeVore sdev...@gmail.com


 To be more serious then I really am feeling when reading the subject
 line of this message.  I am currently playing with using MacGDBp,
 MacCallGrind and Textmate as my workspace

 http://www.bluestatic.org/software/macgdbp/ - connects with xdebug to
 give remote debugging, breakpoints etc
 http://macromates.com/  - my editor of choice
 http://www.maccallgrind.com/ - for profiling with xdebug profile data

 Sam D


 On Mon, Mar 2, 2009 at 3:07 AM, kangghee kangg...@gmail.com wrote:
 
  vi, text edit when on Linux, Mac, using ssh especially
  notepad when on PC using Windows
  edit when on PC when using the command prompt
 
  netbeans and eclipse both take too long to load usually.  But if I
  must choose, netbeans is still my choice.
 
  
 

 


--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Cakephp and Easyshare

2009-02-04 Thread Henrique Machado
Is easy share powered by cakephp?

--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Which editor for Mac OS X?

2009-01-23 Thread Henrique Machado
http://macromates.com/
http://www.panic.com/coda/

2009/1/23 leo ponton@gmail.com


 Having spent months trying to find an adequate editor for Windows, I
 eventually settled on Komodo. Now I'm working on a Mac and Komodo is
 available, but version 5 is so slow it's unusable. I reverted to v4,
 but while it is a little quicker it is also a little unstable. It is
 still slow enough  to be irritating - 2 seconds to switch tabs;
 sometimes it doesn't load the plugins, sometimes it will not maximise
 properly.

 Okay, I'm not using a cutting edge Intel Mac, I'm on a G4 / Leopard,
 but it's still a reasonably powerful machine (it'll run Photoshop and
 Illustrator simultaneously without grinding to a halt).

 Can anybody suggest a non-java based editor (I do not like Eclipse or
 NetBeans or anything Java come to that)? I've tried Xcode, but it
 seems really clunky and not at all geared to PHP. It needs to have
 project handling like Komodo, code intelligence and above all, it must
 be free.

 Maybe a Macport of Bluefish - anybody tried that?
 


--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Which editor for Mac OS X?

2009-01-23 Thread Henrique Machado
Sorry about it

2009/1/23 leo ponton@gmail.com


 Thanks, but neither of them are free.

 On Jan 23, 3:57 pm, Henrique Machado henri@gmail.com wrote:
  http://macromates.com/http://www.panic.com/coda/
 
  2009/1/23 leo ponton@gmail.com
 
 
 
   Having spent months trying to find an adequate editor for Windows, I
   eventually settled on Komodo. Now I'm working on a Mac and Komodo is
   available, but version 5 is so slow it's unusable. I reverted to v4,
   but while it is a little quicker it is also a little unstable. It is
   still slow enough  to be irritating - 2 seconds to switch tabs;
   sometimes it doesn't load the plugins, sometimes it will not maximise
   properly.
 
   Okay, I'm not using a cutting edge Intel Mac, I'm on a G4 / Leopard,
   but it's still a reasonably powerful machine (it'll run Photoshop and
   Illustrator simultaneously without grinding to a halt).
 
   Can anybody suggest a non-java based editor (I do not like Eclipse or
   NetBeans or anything Java come to that)? I've tried Xcode, but it
   seems really clunky and not at all geared to PHP. It needs to have
   project handling like Komodo, code intelligence and above all, it must
   be free.
 
   Maybe a Macport of Bluefish - anybody tried that?
 


--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How to count users login?

2009-01-21 Thread Henrique Machado
I need to provide an access count to my users

Like This is you 4 time here

I'm using the Auth component, my doubt is where put my

$this-User-updateAll(array('User.access'= 'User.access+1'),
array('User.id' = $user['User']['id']));

I need to be sure that the user is logged successfull to increment the
access.

Ty

--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: mercado cakephp (era- Re: abnormal flash)

2009-01-19 Thread Henrique Machado
mais um =)

2009/1/19 Marcelo Andrade mfandr...@gmail.com

 On Sun, Jan 18, 2009 at 1:03 PM, Delirium tremens pedbe...@gmail.com
 wrote:
 
  Existe mercado de trabalho para programador de CakePHP no Brasil???
  Tenho que sair logo.

 Cara, essa é uma boa pergunta.  Eu também sou muito entusiasmado
 com o Cake e gostaria muitíssimo de trabalhar profissionalmente com
 ele.

 Tem chance de trabalho frela internacional no cakephp.org/jobs, mas
 ainda não consegui nada.

 Se alguém tiver algo a contribuir, à vontade.

 PS: ...
  oi Marcelo,
  supresa! eu sou brasileiro também!!! hahaha

 Hehehe...  Só para o pessoal entender, é que o Pedro fez uma
 pergunta na lista gringa e aí ficou dois brasileiros falando um
 com o outro em ingrês, hehehe.

  On 18 jan, 13:44, Marcelo Andrade mfandr...@gmail.com wrote:
  On Sun, Jan 18, 2009 at 12:37 PM, Delirium tremens pedbe...@gmail.com
 wrote:
 
   Flash is called like that because you see the message and seconds
   later you are redirected, right? Well, my flash does not redirect.
   Why???
 
  Your debug level at config modifies the flash behaviour.
 
  Best regards.

 Atenciosamente.

 --
 MARCELO DE F. ANDRADE (aka eleKtron)
 Belem, PA, Amazonia, Brazil
 Linux User #221105

 [...@pará ~]# links http://pa.slackwarebrasil.org/

 For Libby's backstory be told on Lost
 http://www.petitiononline.com/libby423/petition.html

 


--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: FlyUpload RFP Web Development Project, about $10k

2009-01-15 Thread Henrique Machado
http://cakephp.org/jobs

2009/1/14 khalid.j.sha...@gmail.com khalid.j.sha...@gmail.com


 We are looking for a good team of developers to build out
 www.flyupload.com.

 We are looking at products and services from
 www.depositfiles.com
 www.esnips.com
 www.imagebam.com

 I know the last web site would take days to build, and we want that as
 well.  We'd like a team that can do all of this, in CAKE / PHP and
 integrate it with FlyUpload.

 Please contact ASAP
 Khalid
 408 712 3580

 


--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Beginner: Cake PHP and XAMPP (windows)

2009-01-15 Thread Henrique Machado
Or try Wamp that is ready to go

2009/1/15 Bernardo Vieira bvieira.li...@gmail.com


 Xampp comes with mod_rewrite disabled by default. Edit
 c:\xampp\apache\conf\httpd.conf, uncomment the LoadModule mod_rewrite
 line, restart apache and you should be good do go.

 Celso wrote:
  Hello! I am new in cakephp, I am with a proposal to replace the asp by
  php here in my work. Tentei
 http://www.sitepoint.com/article/application-development-cakephp/2/,
  but does not work in XAMPP ...
 
 
  Celso
 
  
 
 


 


--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Nr. Affected Errors Message after installing Cakephp

2009-01-14 Thread Henrique Machado
set debug = 0 at core.php

2009/1/14 dipeshsoftw...@gmail.com dipeshsoftw...@gmail.com


 Hi,

 I am new to cakephp work and after installing cakephp I do get a
 message

 Nr. ...Affected Errors

 for all my request.

 How can i disable/comment this message?

 Thanks!

 


--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Problem with text encoding

2009-01-10 Thread Henrique Machado
I'm using notepad++ too

Always save your file in UTF-8 Without BOM



in the status bar need to appear: Ansi as UTF-8

good luck

2009/1/10 brian bally.z...@gmail.com


 It seems that you're running into the infamous UTF-8 byte-order mark
 issue. I do all my work on Linux and am unfamiliar with Notepad++ so I
 can't say for sure, nor give you the solution directly. I know that
 certain versions of Homesite (well, the version one of my clients
 used) causes this.

 Search online for UTF-8 BOM PHP and, maybe, notepad++ for the lowdown.

 On Sat, Jan 10, 2009 at 10:28 AM, Marco marco.perg...@gmail.com wrote:
 
  Hello,
 
  I have a strange and serious problem with two project in CakePHP 1.2.
  I don't know why some pages render with hidden characters in UTF8 but
  visible in ISO-8859. Usually they are rendered in the beginning of the
  page, before doctype.
  I'm using wamp in Windows XP and deploying in Linux, editing files in
  Notepad++ using UTF8 encoding.
  The rendering of these characters affects presentation, cache and
  sessions.
  I tried to overwrite views encoding them with different format but
  nothing.
  Any idea?
 
  Thanks, Marco
 
  
 

 


--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Bug in text-truncate()?

2008-12-09 Thread Henrique Machado
What ?php echo $test ? returns?

2008/12/9 Günther Theilen [EMAIL PROTECTED]


 Hi,

 I have a problem with truncate() and German umlauts (äöü).
 (The DB and the php code is in utf-8)

 $test = xäx;
 debug ($text-truncate($test, 9));

 I would expect it to return
 xä...
 but it returns
 x?...

 Bug or feature?

 Regards
 Guenther

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Plugin Auto-install!

2008-11-21 Thread Henrique Machado
I'll look for it!

Thank you

2008/11/20 Dr. Tarique Sani [EMAIL PROTECTED]


 On Wed, Nov 19, 2008 at 10:15 PM, Henrique Machado [EMAIL PROTECTED]
 wrote:
  Hello Bakers!
 
  I'm thinking about create an custom CMS (for my purposes) with cakephp.
 
  I need to do it more modular as possible. And more automatic-install as
  possible.

 We have some dirty hacks in Cheesecake-Photoblog to do this...

 All I can say is that it works - feel free to take a look at the code...

 Cheers
 Tarique

 --
 =
 Cheesecake-Photoblog: http://cheesecake-photoblog.org
 PHP for E-Biz: http://sanisoft.com
 =

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Plugin Auto-install!

2008-11-19 Thread Henrique Machado
Hello Bakers!

I'm thinking about create an custom CMS (for my purposes) with cakephp.

I need to do it more modular as possible. And more automatic-install as
possible.

Eg:

News plugin

Is right do an install.php to create tables for it? and relationships?

I' m in the right way?

Some ideas please


**Sorry my bad english

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: problem naming controller

2008-11-19 Thread Henrique Machado
Its nothing about inflectors?



2008/11/19, mchollan [EMAIL PROTECTED]:


 Carlos,

 I see what you are saying, and I wrestled this for a short time on my
 own.  The reason I believe You get those errors when you use what you
 believe is the correct naming convention is actually how you request
 the pages.  The URL routes like this
 http://localhost/{Application}/{Controller}/{Action}/{Parameter
 1} .  So if you build you controller as ItemsController but call
 http://localhost/cakeapp/item  you will get the error:

 Error:  ItemController could not be found.

 Error: Create the class ItemController below in file: app/controllers/
 item_controller.php

 ?php
 class ItemController extends AppController {

var $name = 'Item';
 }
 ?


 Then you request http://localhost/cakeapp/items and you should see the
 correct page.  I hope this clears things up for you.

 Matthew

 On Oct 2, 5:52 am, carlos ferrandis [EMAIL PROTECTED] wrote:
  I appreciate your effort in point me the rules about conventions, however
 I
  haven't broken those conventions in this case, is cake the one that is
  wrongly showing weird directions on the error messages. But it only
 happens
  when I turn off the .htaccess because I had to in order to have
 everything
  working in my zend/apache.
  If I take all the code without any change and put in another computer
  running wamp it work like a charm.
 
  I am pretty sure the issue is related to zend/apache but still I think it
  should work using the   pretty stuff in substitution of the .htaccess,
  don't you agree?
 
  I would like to be able to catch attention for that issue because I feel
 it
  might be important for more people beside me.
 
  thanks a lot
 
  carlos
 
  On Thu, Oct 2, 2008 at 1:42 AM, Predominant [EMAIL PROTECTED]
 wrote:
 
   The CakePHP Book really is the ultimate source for this information.
   The Conventions section explains everything you need:
  http://book.cakephp.org/view/22/CakePHP-Conventions
 
   Model Name: singular, camel cased
   Model File Name: singular, underscored
   Controller Name: plural, camel cased
   Controller File Name: plural, underscored
   Database Table Name: plural, underscored
 
   Cheers.
 
   On Oct 2, 2:44 am, carlos ferrandis [EMAIL PROTECTED] wrote:
I thought it was a problem because I was not used to the naming rules
for cake but now I don't understand, please continue reading...
 
I have a table named:  items
 
then inapp/controllers/items_controller.php
 
I have
 
?php
class ItemsController extends AppController {
var $name = 'Items';
var $scaffold;}
 
?
 
the code above troughs the following error:
 
Error: ItemController could not be found.
Error: Create the class ItemController below in file:
 app\controllers\
item_controller. php
?php
class ItemController extends AppController {
 
var $name = 'Item';}
 
?
 
If I switch to singular: app/controllers/item_controller.php
 
and the class as well:  class ItemsController extends AppController
{...
 
then it works.
 
but so far I've learned that I should be in plurar, so I don't
understand.
 
Is there anybody available to write some explanation about that. May
be is my fault.
 

 
Em portugues:
 
Achei que fosse por eu estar me acostumando com as regras de
nomenclatura do cake mas vamos aos fatos:
 
eu tenho uma tabela que se chama: items
 
em app/controllers/ items_controller .php
 
eu tenho:
 
?php
class ItemsController extends AppController {
var $name = 'Items';
var $scaffold;}
 
?
 
o codigo acima nao roda. da erro e diz que
 
Error: ItemController could not be found.
Error: Create the class ItemController below in file:
 app\controllers\
item_controller. php
?php
class ItemController extends AppController {
 
var $name = 'Item';}
 
?
se eu passo para singular o nome do arquivo.php e o nome da classe
como a mensagem de erro pede entao roda.
 
mas na literatura que estou lendo diz, tabela no plural
controller.php no plurar e classe no plurar.
 
alguma explicacao plausivel que prove que eu estou comentendo algum
erro?
 
obrigado
 
Carlos

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to get the category cover from a product table?

2008-08-19 Thread Henrique Machado

This works perfectly!

Thank you

2008/8/19 grigri [EMAIL PROTECTED]:

 Set up an extra relationship, like so:

 class Category extends AppModel {
  // ...
  var $belongsTo = array(
'CoverProduct' = array(
  'className' = 'Product',
  'foreignKey' = 'imgpath',
  'fields' = array('imgpath')
)
  );
  // ...
 }

 Yes, it does sound weird that a category belongs to its cover, as in
 real-world usage we'd say the opposite. But this is the way cake works
 things.

 Now when you do your pagination and set $categories in the view:

 foreach ($categories as $cat) {
  echo $cat['Category']['nome']; // Category title
  echo $html-image($cat['CoverProduct']['imgpath']); // Category
 image
 }

 hth
 grigri

 On Aug 19, 5:08 am, Henrique Machado [EMAIL PROTECTED] wrote:
 Hello!
 This is my first messa ge here.
 Sorry my bad english, i'm from brazil

 Scenario:

 Category hasMany Products
 Products belongsTo Category

 category table:

   `id` int(10) unsigned NOT NULL auto_increment,
   `nome` varchar(255) collate utf8_unicode_ci default NULL,
   `created` datetime default NULL,
   `slug` varchar(255) collate utf8_unicode_ci default NULL,
   `imgcover` int(11) NOT NULL,
   PRIMARY KEY  (`id`)

 products:

   `id` int(10) unsigned NOT NULL auto_increment,
   `imgpath varchar(255) collate utf8_unicode_ci default NULL,
   `legend` varchar(255) collate utf8_unicode_ci default NULL,
   `created` datetime default NULL,
   `slug` varchar(255) collate utf8_unicode_ci default NULL,
   `category_id` int(10) unsigned default NULL,
   PRIMARY KEY  (`id`),
   KEY `fotos_obra` (`obra_id`)
 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
 AUTO_INCREMENT=27 ;

 My problem: I need to show the imgcover (is the product id) in my
 category index:
 function index() {
 $this-Category-recursive = 1;
 $this-set('categories', $this-paginate());
 }

 The php way is do an foreach categories and loop each cagotegory to
 do something like: SELECT imgpath FROM PRODUCTS WHERE id =
 category.imgcover

 But, in the cake way?

 Thanks
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How to get the category cover from a product table?

2008-08-18 Thread Henrique Machado

Hello!
This is my first messa ge here.
Sorry my bad english, i'm from brazil

Scenario:

Category hasMany Products
Products belongsTo Category

category table:

  `id` int(10) unsigned NOT NULL auto_increment,
  `nome` varchar(255) collate utf8_unicode_ci default NULL,
  `created` datetime default NULL,
  `slug` varchar(255) collate utf8_unicode_ci default NULL,
  `imgcover` int(11) NOT NULL,
  PRIMARY KEY  (`id`)

products:

  `id` int(10) unsigned NOT NULL auto_increment,
  `imgpath varchar(255) collate utf8_unicode_ci default NULL,
  `legend` varchar(255) collate utf8_unicode_ci default NULL,
  `created` datetime default NULL,
  `slug` varchar(255) collate utf8_unicode_ci default NULL,
  `category_id` int(10) unsigned default NULL,
  PRIMARY KEY  (`id`),
  KEY `fotos_obra` (`obra_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
AUTO_INCREMENT=27 ;


My problem: I need to show the imgcover (is the product id) in my
category index:
function index() {
$this-Category-recursive = 1;
$this-set('categories', $this-paginate());
}

The php way is do an foreach categories and loop each cagotegory to
do something like: SELECT imgpath FROM PRODUCTS WHERE id =
category.imgcover

But, in the cake way?


Thanks

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---