Re: Query help

2010-09-03 Thread Blackymetal
You should use % instead of * On Sep 3, 4:49 pm, Dave Maharaj m...@davemaharaj.com wrote: I have this query in the model $params = array( 'conditions' = array( 'Profile.company LIKE' = $i.'*'), 'fields' = array( 'Profile.company', 'Profile.id'), 'contain' = false);

Re: Trying to Understand the Containable Behavior

2009-05-02 Thread Blackymetal
On May 2, 9:40 pm, Brendon Kozlowski brendon...@hotmail.com wrote: If you can figure out the SQL query, then it could be reverse engineered in to a CakePHP find call.  Containable is merely a mechanism to reduce any unnecessary joins that you don't need for that particular query; it's to

Re: Index page problem

2009-03-05 Thread Blackymetal
in /app/config/routes.php put this route : Router::connect('/', array('controller' = 'contents', 'action' = 'view',1)); On Mar 5, 6:39 am, kaushik kaushikwo...@gmail.com wrote: In front page i want to show same with http;//www.test.com/contents/ view/1, but the url must be like

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

2009-03-01 Thread Blackymetal
TextMate On Mar 1, 7:39 am, Marcel vermas...@gmail.com wrote: At the moment I'm still using Eclipse. But it's too slow and the code completion is not very useful with CakePHP. A normal Texteditor would do it's job as well. I'll give Netbeans a try and then probably switch to notepad++ or

Re: how to set current time for local computer

2009-02-28 Thread Blackymetal
I had the same issue a week a go, my server is located on GMT -6 and my country is on GMT -5 The function takes the GMT from Server within the timestamp /* @param integer $time server timestamp (time()) or whatever timestamp * @param integer $userGMT this is the GMT you want convert to *

Re: Is it possible to validate a file upload?

2008-02-25 Thread Blackymetal
The file validation is not implemented yet, i had to write the code (works for me) and uploaded it to trac.cakephp.org, This is the ticket https://trac.cakephp.org/ticket/4170 On Jan 11, 12:41 am, Louie Miranda [EMAIL PROTECTED] wrote: I just want to be able to validate a file upload, but

Re: FormHelper::input() has no size option??

2008-02-22 Thread Blackymetal
Use size in the options array, This is an example for input type text: $form-input('Model.field', array('type'='text','size' = '50', 'maxlength'='255')); On Feb 22, 6:01 am, Doug @ Straw Dogs [EMAIL PROTECTED] wrote: I'm a bit suprised to find that the input method of the form helper doesn't