calling js placed in app/vendors/js

2008-03-03 Thread Charlie van de Kerkhof
Hi, Searched but not found... How can I call my javascript files I placed in app/vendors/js ? or from /vendors/ ? thnx! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send e

Re: Replacement App:import for older 1.2 versions

2008-02-22 Thread Charlie van de Kerkhof
That worked: uses('controller/Controller'); loadComponent('Email'); Thnx Dardo! On Feb 22, 11:23 am, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > try uses(); > > On Fri, Feb 22, 2008 at 6:29 AM, Charlie van de Kerkhof > > <[EMA

Replacement App:import for older 1.2 versions

2008-02-22 Thread Charlie van de Kerkhof
Hi all, Is there a replacement for the App:import() in older 1.2 versions? I can't upgrade otherwise my app will break in thousand pieces :) This is the one. App::import('Core', 'Controller'); Others I know like: App::import('Component', 'Email'); was: loadComponent('Email'); But that 'Core' thi

Re: New site added to 'Cake Apps/Sites In The Wild'

2008-01-10 Thread Charlie van de Kerkhof
And the name of the site and URL: Cloudspeakers.com - http://www.cloudspeakers.com On 10 jan, 17:27, Charlie van de Kerkhof <[EMAIL PROTECTED]> wrote: > New site/app added to > http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild > A music aggragator of revi

New site added to 'Cake Apps/Sites In The Wild'

2008-01-10 Thread Charlie van de Kerkhof
New site/app added to http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild A music aggragator of reviews, audios and videos. Build in cake 1.2. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cak

Cstom patameters with pagination

2007-11-16 Thread Charlie van de Kerkhof
Hi, I know there is a lot about pagination on this group, but I can't find what I'm looking for or understand what I found. Basically what I want is that I can pass custom parameters (named or passed) to the next, prev, sort and numbers links in my admin index actions. For instance: http://loca

Mailing certain errors when debug = 0

2007-10-31 Thread Charlie van de Kerkhof
Hi, I'm planning to overwrite the Debugger::handleError() function to send me some emails if an error occurred instead of printing or only logging. The main question is: How do I do that in Cake? I know how to make a class that extends Debugger and in that class make a new method handleError. But

Re: Making comments safe with Sanitize

2007-10-27 Thread Charlie van de Kerkhof
Sanatize::escape() in v1.2 http://api.cakephp.org/1.2/class_sanitize.html#7880433bcb1bbf193ddd090db89389ea On Oct 27, 2:25 pm, "Olexandr Melnyk" <[EMAIL PROTECTED]> wrote: > $Sanitize->sql($data) on CakePHP 1.1 > > On 10/27/07, cakeFreak <[EMAIL PROTECTED]> wrote: > > > > > Hey guys, > > > just w

Re: MAMP and Cake 1.2 Pre-Beta: 1.2.0.5875

2007-10-26 Thread Charlie van de Kerkhof
No. I use MAMP + MAMP Pro 1.7 and no problems in safari On Oct 25, 9:55 pm, mastorna <[EMAIL PROTECTED]> wrote: > Is anyone having difficulty upgrading to 1.2 pre-beta from a 1.1 or > earlier 1.2 lines when using MAMP? I've got all my htaccess files > configured as normal, as well as MAMP's Apac

Re: Shell script questions

2007-10-26 Thread Charlie van de Kerkhof
: Undefined offset: 5 in /.../cake/console/cake.php on line 409 What is the right syntax? Or is it an enhancement... thnx!! On Oct 23, 4:46 pm, Charlie van de Kerkhof <[EMAIL PROTECTED]> wrote: > Hi, > I love theShellscripts features in cake 1.2. But I have a couple of > question

Shell script questions

2007-10-23 Thread Charlie van de Kerkhof
Hi, I love the Shell scripts features in cake 1.2. But I have a couple of questions: 1. Can I remove the first output of every shell script: Hello charlie, Welcome to CakePHP v1.2.0.5875 pre-beta Console --- It is not the function _welc

Someone did some moderating?

2007-10-22 Thread Charlie van de Kerkhof
Hi, I posted a couple of messages to this post this morning and now two of them are gone. The whole topic seems to have dissappeared... Even in my google group profile. Someone did some enthousiastic moderating? Or is it just a bug in google group? - Charlie --~--~-~--~~---

Re: Update gone wrong.

2007-10-22 Thread Charlie van de Kerkhof
eate the directory. Try creating it, then you problem > SHOULD be fixed. =) > > Regards, > - Sergio > > On Oct 22, 8:22 am, Charlie van de Kerkhof <[EMAIL PROTECTED]> > wrote: > > > I have the same problem and the solution of nate didn't help. > >

Re: Query help

2007-10-22 Thread Charlie van de Kerkhof
I assume that you also have a Category model? Then setup the right associations in Article and Category and ArticleCategory and use the $this->resursive = 1 var in Article or Category to get the associations of that article or category - Charlie On Oct 22, 1:25 pm, LS <[EMAIL PROTECTED]> wrote:

Re: Update gone wrong.

2007-10-22 Thread Charlie van de Kerkhof
I have the same problem and the solution of nate didn't help. I think this is a bug but I don't know for sure: (latest svn version of 1.2.x.x. branches) In APP/config/core.php: - Configure::write('Cache.disable', true); - Cache::config('default', array('engine' => 'File')); Gives the warning 512

Re: Blank page when debug = 0

2007-10-22 Thread Charlie van de Kerkhof
> > Sam D > > On 10/21/07, Charlie van de Kerkhof <[EMAIL PROTECTED]> wrote: > > > > > > > Hi Pablo,thnx for your reply. > > Also did that. Even with debug=3 but no errors > > > On Oct 21, 6:06 pm, "Pablo Viojo" <[EMAIL PROTECTED]>

Re: Blank page when debug = 0

2007-10-21 Thread Charlie van de Kerkhof
Hi Pablo,thnx for your reply. Also did that. Even with debug=3 but no errors On Oct 21, 6:06 pm, "Pablo Viojo" <[EMAIL PROTECTED]> wrote: > Set debug=1 and check if you have errors on your page > > -- > Pablo Viojo > [EMAIL PROTECTED]://pviojo.net > > On 10/

Blank page when debug = 0

2007-10-21 Thread Charlie van de Kerkhof
Hi, I still have this problem. Searched this forum about this subject and did all suggestions: 1. cleaned the app/tmp/cache/models, app/tmp/cache/persistent and app/ tmp/cache/views folders 2. Updated cake core folder to latest svn version from 1.2.x.x branche 3. checked the rights on the app/tmp

Re: Output of RSS contains spaces

2007-10-18 Thread Charlie van de Kerkhof
;t tried > with any later builds of 1.2. > > Wayne > > On 10/18/07, Charlie van de Kerkhof <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > I'm trying to get the RSS functionality working in CakePHP 1.2 Working > > just fine, but it gives me 1 space

Output of RSS contains spaces

2007-10-18 Thread Charlie van de Kerkhof
Hi, I'm trying to get the RSS functionality working in CakePHP 1.2 Working just fine, but it gives me 1 space before the opening header http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---

Re: FindAll condition can not be an array?

2007-09-26 Thread Charlie van de Kerkhof
knew that cake would accept an array for a single value in a > condition before. Where is that documented? > > "cake is unfortunatly full of 'trade secrets'" (Alkemann, IRC > #cakephp) > > Mike > > On Sep 26, 12:09 pm, Charlie van de Kerkhof <[EMAIL PROTE

Re: FindAll condition can not be an array?

2007-09-26 Thread Charlie van de Kerkhof
> -Original Message- > From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > > Of Charlie van de Kerkhof > Sent: 26. september 2007 12:36 > To: Cake PHP > Subject: FindAll condition can not be an array? > > Hi, > > (v1.2, latest SVN

FindAll condition can not be an array?

2007-09-26 Thread Charlie van de Kerkhof
Hi, (v1.2, latest SVN version) I try to pass an array to the findAll function like this: $condition = array('id'=>array(2,5,6,9,12,45,78,43,76)); $this->Artist->findAll($condition); But the Query is written to the database is: SELECT * from Artist WHERE (2) AND (5) AND (6) AND (9) AND (12) AND

Re: How to use findById from a different model in a model

2007-09-16 Thread Charlie van de Kerkhof
Thnx Tarique, I get your point. I agree but for now it has to be like this. Thnx anyway On Sep 16, 10:43 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 9/16/07, Charlie van de Kerkhof <[EMAIL PROTECTED]> wrote: > > > > > You got my attention. Why

Re: How to use findById from a different model in a model

2007-09-15 Thread Charlie van de Kerkhof
Hi Tarique, You got my attention. Why is this? Is this because of performance issues? What do you mean by 'loose coupling'? On Sep 16, 4:02 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 9/16/07, Chris Hartjes <[EMAIL PROTECTED]> wrote: > >

Re: How to use findById from a different model in a model

2007-09-15 Thread Charlie van de Kerkhof
Yep! That did the trick. Thanks Chris! Some basic OO I think. I get spoiled by Cake! ;) That's for sure... On Sep 15, 10:12 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 9/15/07, Charlie van de Kerkhof <[EMAIL PROTECTED]> wrote: > > > // In mod

Re: How to use findById from a different model in a model

2007-09-15 Thread Charlie van de Kerkhof
ot;Marcelo Linhares" <[EMAIL PROTECTED]> wrote: > $uses = array("Artist","Ticker"); > > []s > Marcelo Linhares > > 2007/9/15, Charlie van de Kerkhof <[EMAIL PROTECTED]>: > > > > > > > Hi, > > > I like to use the mode

How to use findById from a different model in a model

2007-09-15 Thread Charlie van de Kerkhof
Hi, I like to use the model standard functions like findById() in another model instead of a controller. In model Ticker I want data from a table called 'artists' which has model 'Artist' but model Ticker doesn't use a database table. // In model Ticker: $artists = $this->Artist->findById(12);

Suggestions on Time Helper (1.2)

2007-09-13 Thread Charlie van de Kerkhof
Hi all, Before I add a enhancement ticket in trac I would like to know what you people do in this situation: I have a database datetime '2007-09-13 13:24:12' en I would nicely transform that on a webpage to: 'September 13th 13:24h' I used the Time Helper like this: $time->format('F dth H:i', $db_

Re: Error in i18n after baking fresh new admin controllers and views

2007-09-10 Thread Charlie van de Kerkhof
I've seen this in the code on that particular line: $data = fread($file, 1<<20); 1<<20 ?? I will submit a trac ticket. On Sep 10, 5:06 pm, Charlie van de Kerkhof <[EMAIL PROTECTED]> wrote: > Hi, > > I used bake before in v1.2 and working alright for me. But aft

Error in i18n after baking fresh new admin controllers and views

2007-09-10 Thread Charlie van de Kerkhof
Hi, I used bake before in v1.2 and working alright for me. But after a certain svn update (don't know which version) my admin_index gives an error in i18n: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1048577 bytes) in /cake/libs/i18n.php on line 379 And when I

How to change the url in the paginator helper (v1.2)

2007-09-05 Thread Charlie van de Kerkhof
Hi, I've seen a couple of posts and articles how to change the url and params in the paginator helper. They work if you have an out-of-the- box router setup with the standard controller, actions, etc. But I've tested some things with the static 'url' option and that seems not working. app/views/a

Re: Pagination in 1.2 URL problem (how to handle custom URL?)

2007-09-04 Thread Charlie van de Kerkhof
Maybe to complex: Has anyone used custom url in pagination (v1.2) before? On Sep 3, 1:19 pm, Charlie van de Kerkhof <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm fiddling with the paginate Helper in the latest svn version of > 1.2. It is not working when I have setup spe

Re: Extra field in custom Query gives extra array

2007-09-03 Thread Charlie van de Kerkhof
> Maybe removing the quote around '$filter' (in the SELECT fields) will > avoid this. > > On Sep 3, 6:17 pm, Charlie van de Kerkhof <[EMAIL PROTECTED]> > wrote: > > > Hi, > > > In my model I do this: > > $filt

Extra field in custom Query gives extra array

2007-09-03 Thread Charlie van de Kerkhof
Hi, In my model I do this: $filter = 'reviews'; $field = 'artist_id'; $ids = '23,46'; $sQuery = "SELECT id,title,url,'$filter',modified ". "FROM $filter AS $filter ". "WHERE status=1 AND $field I

Re: including one or more pages in another page

2007-09-03 Thread Charlie van de Kerkhof
Hi Ravi, in cakePHP you can make view elements which contains pieces of PHP and HTML code. In that mail template of yours you can 'include' those elements. example: in email.ctp (or email.thtml if you still use v1.1) renderElement('loginbox', array("loggedin" => true, 'username'=>'ravi'));?> an

Pagination in 1.2 URL problem

2007-09-03 Thread Charlie van de Kerkhof
Hi all, I'm fiddling with the paginate Helper in the latest svn version of 1.2. It is not working when I have setup special routes. The Html->link works with url array's and compares them with the routes and makes the appropriate link. But with the paginator I can't get that working. In my view

Re: Password edits/validation

2007-08-30 Thread Charlie van de Kerkhof
Thnx! I read irt before, but I forgot. Exactly what I needed for my situation. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsu

Re: wrong action $form->create() by bake in admin_edit

2007-08-28 Thread Charlie van de Kerkhof
I've seen a reopened ticket in trac, so I guess it is know and someone is working on it. https://trac.cakephp.org/ticket/3108 Sorry for posting in here before looking at the tickets :\ - Charlie --~--~-~--~~~---~--~~ You received this message because you are subs

wrong action $form->create() by bake in admin_edit

2007-08-28 Thread Charlie van de Kerkhof
Hi all, I used the bake functionality on my database and it is working great! I use the admin functionality too. 1) Every form will generate correct except in the admin_edit form. There the $form->create('Modelname') will not add the '/admin/' before the action. In the admin_add form (with the s

Re: database connection problems

2007-08-22 Thread Charlie van de Kerkhof
HI, as the error says the host is not correcty, or not accessible from your webserver. Check your priviliges on your mysql user you use in this dbconfig. On Aug 22, 6:41 pm, rtanz <[EMAIL PROTECTED]> wrote: > hi i have uploaded cake on to my server however i am having problems > connecting to the

Re: database resultset without modelname

2007-08-22 Thread Charlie van de Kerkhof
Thnx AD & Simon! generateList is a good one but I couldn't get it working. The Set::extract($res, '{n}.Artist.artist_id') worked like a charm! So I will use that. Thnx again! - Charlie --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

database resultset without modelname

2007-08-22 Thread Charlie van de Kerkhof
Hi, Is it possible to have the resultset from a findAll() without the modelname? Or even better, when I want 1 field just a column? Now I get this: Array ( [0] => Array ( [Artist] => Array ( [artist_id] => 4 ) )

Re: setting the base url for url language support

2007-08-18 Thread Charlie van de Kerkhof
Thnx all. I will check the testcase. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EM