Re: PHP Version 6 compatibilty

2007-12-27 Thread Tijs Teulings
r Zone and I get > the impression that the following is true: > > PHP 6 = PHP 5.3+ with full native unicode support > > So it's anyone's guess as to when the end of support for PHP 5.3 > will be. > > -- > Chris Hartjes > > My motto for 2007: "Just

Re: New CakePHP Releases

2007-10-23 Thread Tijs Teulings
re that I am > yet to use - you guys are really over-delivering! > > indeed. awesome work! an unbeatable feature set if you ask me, obviously biased but still :) > I think it's about time I made a donation! > > nice reminder... i think i will follow your example. -- T

Re: New cake website

2007-10-06 Thread Tijs Teulings
>> >> 2007/10/6, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: >> >> >> >>> Hi >> >>> I have just done my first CAKE website for Dr Martens. If you get >>> chance take a look: >> >>> http://www.dmbootdesign.com/ >>

Re: Cake1.2

2007-09-14 Thread Tijs Teulings
check under the header titled console: http://ahsanity.wordpress.com/2007/08/29/cakephp-12-the-romance- continues/ On 14-sep-2007, at 8:33, wickass wrote: > > How do you bake an app in cake 1.2 > > > > -- Tijs Teulings tel: +31645004824 http://blog.tijs.org more: http://

Re: Upload behaviour http://bin.cakephp.org/saved/21813

2007-08-02 Thread Tijs Teulings
Hi Andras, Make sure the name of the file field is the same as the name you specified in the actas array. There is a slightly updated version of this behaviour here btw: http://tinyurl.com/yr6tqd This includes a lot of fixes by AD7six and some of my own. Beware though; the actas array cha

Re: Mambo to use CakePHP for V5

2007-07-25 Thread Tijs Teulings
sweet! and welcome to the community :) Tijs On 25-jul-2007, at 13:20, cauld wrote: > > The installer prototype I wrote for Mambo utilizes 1.1, but I will be > redoing it with 1.2 soon. Mambo 5 will go with 1.2. > > On Jul 25, 2:49 am, "Sascha Fröhlich" <[EMAIL PROTECTED]> > wrote: >> Heya, >>

Re: Workflow engine for cake

2007-07-21 Thread Tijs Teulings
I think you are talking about workflows (the problem) and domain specific languages (a solution). http://en.wikipedia.org/wiki/Domain-specific_programming_language All really interesting stuff but way out of scope for a lean and mean framework you might just want to build a blog with. Tijs

Re: CakePHP Conventions

2007-07-15 Thread Tijs Teulings
Good points, opening a ticket on trac will probably be most effective n resolving the issues: https://trac.cakephp.org/report Best, Tijs On 14-jul-2007, at 22:20, JTTACJ1 wrote: > > I have found thee sources of CakePHP conventions: > > The Bakery: http://bakery.cakephp.org/articles/view/cake

Re: Upload behavior

2007-07-13 Thread Tijs Teulings
On 13-jul-2007, at 12:47, Gorka wrote: > >> Or maybe even 'MiUploadBehavior extends UploadBehavior', and a >> call to >> beforeSave{mime}{Type} is made if the method exists etc.. > > Though this might enforce convention over configuration approach, I > see two possible issues with it. First, so

Re: Upload behavior

2007-07-13 Thread Tijs Teulings
On 13-jul-2007, at 9:12, AD7six wrote: > > On Jul 12, 1:53 pm, Tijs Teulings <[EMAIL PROTECTED]> wrote: > > Hi Tarique, > > The behavior in cheesecake is almost stripped to the bone, and has > some assumptions built in (where the files will go meaning the use of >

Re: Upload behavior

2007-07-12 Thread Tijs Teulings
I have a version up on cakebin too which fixes issues with resizing, it's relicance on phpThumb, permissions and saving extra properties without uploading a new image. You can find it here: http://bin.cakephp.org/saved/21813 I think Andy's version adds a default setup, but is that it? If so i

Re: [C] 1.2 validation - This field cannot be left blank

2007-02-19 Thread Tijs Teulings
t blank fields in beforeValidate() or b) manually > validate optional fields in validates() then call parent::validates() > and return the result. I've taken option b - with a //TODO note to > refactor once allow blank functionality comes into the core - which > I'm sure it

Re: [C] 1.2 validation - This field cannot be left blank

2007-02-18 Thread Tijs Teulings
unset blank fields in beforeValidate() or b) manually > validate optional fields in validates() then call parent::validates() > and return the result. I've taken option b - with a //TODO note to > refactor once allow blank functionality comes into the core - which > I'm sur

Re: [C] 1.2 validation - This field cannot be left blank

2007-02-18 Thread Tijs Teulings
I was hoping something like allowEmpty would be implemented soon so i could really start using 1.2 but, using the latest dev release, i still get 'this field cannot be left blank' errors even when i set allowEmpty to true. I tried several variants on the example you give but no dice. Validating

Re: Any downside to using direct SQL with query()

2007-01-15 Thread Tijs Teulings
i had the same question a while back: http://www.nabble.com/Filtering-HABTM-associations-using-columns-in-both-models-tf2699228.html#a7991028 keymaster wrote: I have a fairly custom SQL query, which probably *could* be written with findAll(), but would involve unpleasant contortions. I f

Re: Admin Controller

2007-01-09 Thread Tijs Teulings
I think there is no magic to auto identify all the available admin actions. What you are talking about would be kind of neat though... Tijs PaulV wrote: > > > Hi, > > Having added CAKE_ADMIN functions to several controllers, I would like > to add an action somewhere so that I can go to the

Re: lov.li - social network built on cake

2007-01-05 Thread Tijs Teulings
Great stuff expatrick, congratulations! I would love to see more case studies on the bakery (http://bakery.cakephp.org/categories/view/4). I think it would really help the community grow if examples like these are as widely publicized as possible. Best, Tijs expatrick wrote: http://lov.li

Re: lov.li - social network built on cake

2007-01-05 Thread Tijs Teulings
p.s. which datacenter did you pick? The site is very responsive from europe... Tijs expatrick wrote: http://lov.li is online - thanks very much to the cake development team and everyone in #cakephp for your help. lov.li is a 'community art market' - like flickr for art, crafts and handmade

Re: Filtering HABTM associations using columns in both models

2006-12-20 Thread Tijs Teulings
Yikes, i never knew... i thought (most of) those things would work fine with query(). thanks for the enlightenment. tijs AD7six wrote: On Dec 20, 12:03 pm, Tijs Teulings <[EMAIL PROTECTED]> wrote: I might be daft but in these cases plain old SQL isn't all that bad is

Re: Filtering HABTM associations using columns in both models

2006-12-20 Thread Tijs Teulings
I might be daft but in these cases plain old SQL isn't all that bad is it... $posts = $this->Post->query("SELECT DISTINCT Post.title, Post.body FROM posts as Post LEFT JOIN posts_tags as pt ON Post.id = pt.post_id LEFT JOIN tags as Tag ON Tag.id = pt.tag_id WHERE Tag.id = '$id' AND Post.publ

Re: CakePHP blogs

2006-12-20 Thread Tijs Teulings
i think the 'read' list on http://www.cakephp.org/ is a really good place for such a list. maybe it should g feature a 'more...' link linking to a page with a longer resources list... Tijs Mariano Iglesias wrote: My fellow bakers, Does anyone hold a list of CakePHP related blogs? We shoul

Re: Passing data to the view in a nice way?

2006-12-08 Thread Tijs Teulings
I haven't run into a query yet where a simple foreach loop did not suffice; are you doing something similar like this in your views?: link($book['Book']['title'], "view/{$book['Book']['id']}"); ?> where my controller did: set('books', $this->Book->findAll()); That's not too b

Re: How to make HABTM edit pages auto-select selected items?

2006-12-03 Thread Tijs Teulings
I tend to use: $this->set('selectedTopics', $this->Topic->generateList()); which creates a list that is usable in a select dropdown right away. note the absence of 'id' in the function call which makes array_reverse unnecessary i believe. [EMAIL PROTECTED] wrote: > > > Try this in your cont