Re: CakeRoute

2012-01-27 Thread sixthpoint
thanks for the reply, I will look into both of these for my project On Jan 26, 5:47 pm, Sam Sherlock wrote: > Jose Diaz-Gonzalez has some code on github that may help here > you'll have to adjust/play > > a domain redirect comp - set up a model > domain_prefixeshttps://gist.github.com/1498851 >

Are child contain rules duplicated across parents? Unexpected results.

2012-01-27 Thread aaron
This is a Cake 2 project. Also posted issue here: http://bin.cakephp.org/view/285982918 Post belongsTo User User hasMany AvatarSet (alias of Asset with model=>User, name=avatar, polymorphic) Comment belongsTo User User hasMany AvatarSet (alias of Asset with model=>User, name=ava

Re: CakePHP uprgate

2012-01-27 Thread euromark
also use the provided upgrade shell to let cake handle it as much as possible It will not take care of everything, though read the upgrade guide carefully so that you don't forget anything. I also added twice as much "replacements" in my version of it: https://github.com/dereuromark/upgrade for th

Re: CakePHP uprgate

2012-01-27 Thread Tilen Majerle
well, i'm sure that PHP will return some errors on screen, just follow them and correct it :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/1/27 CakePHP > thanks for reply.for example you can say me which code i will must > chenge? > > -- > Our newest site for the community: CakePHP Vid

Session Flash not displaying on deployment

2012-01-27 Thread Pratz_
Hi, For some reason Session Flash is working absurdly on deployment on server, though working right on local server. The flash is not displaying most of the times. However if I put $this- >Session->read() in controller, then the Session Flash works perfectly right. I am using CakePHP 2.0.5 and a

Re: CakePHP uprgate

2012-01-27 Thread CakePHP
thanks for reply.for example you can say me which code i will must chenge? -- 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

Re: CakePHP uprgate

2012-01-27 Thread Tilen Majerle
you can directly to 2.0 but you will have to change more inside code :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/1/27 CakePHP > Hi,i use cakephp versinon 1.2 beta.can i uprgate it to cakephp version > 2 without version 1.3?or firstly i must uprgate to 1.3? > > -- > Our newest site

Re: jointable combined jointable

2012-01-27 Thread Kaupo Vana
Hi, I'm don't know the background of this task so the users habtm jobs looks a bit strange to me but if you want to keep the position concept then you can create a model for this. Table positions with fileds id, user_id, job_id and give habtm relationship to deliverynotes. Best regards, Kaupo

CakePHP uprgate

2012-01-27 Thread CakePHP
Hi,i use cakephp versinon 1.2 beta.can i uprgate it to cakephp version 2 without version 1.3?or firstly i must uprgate to 1.3? -- 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 wit

jointable combined jointable

2012-01-27 Thread Dennis Reinert-Frerich
Hi, i didnt get this thing working. i have the following tables: users jobs and the jointable jobs_users. The jointable combines jobs with users. everything is ok, that works fine. Now i want to have delivery notes with several delivery notes positions. Each positions can have one or more worke

Use DB view for model in Cake 2.0

2012-01-27 Thread TapTap
I'm using a basic model following Cake PHP conventions. The model is using a view instead of a table in the database, which always worked in Cake 1.3, but since I upgraded to 2.0 I get "Error: Database table cameras for model Camera was not found." That's the right model and that view exists in the

Re: Sqlserver requires a database connection

2012-01-27 Thread zal1en
Works like a charm for mssql fetching data :) Howver your readme has to be updated a little bit: class DATABASE_CONFIG { public $gramdb = array( 'datasource' => 'Datasources.Database/Mssql', ^^ and also you have to put CakePlugin::load('Datasources'); in bootstrap.php

Re: Sqlserver requires a database connection

2012-01-27 Thread zal1en
Works like a charm for mssql :) (at least for fetching data - which is my case) However you readme has to be changed a bit: class DATABASE_CONFIG { public $mydb = array( 'datasource' => 'Datasources.Database/Mssql', ^^ ); } and also you have to add CakePlugin::load('Da

database concentions cake bake all

2012-01-27 Thread Dennis
hi, i am thinking that i misunderstood the cake conventions. i created a database with about 40 tables. every time i try to use cake bake all i get the error message, that some tables are missing. For example Table users (FK here is user_group_id) Table user_groups cake bake all tell me that tab

Re: Problem with CakePlugin on shared server

2012-01-27 Thread Sam Sherlock
When I say remake all I mean is mv Mvc into a freshly baked project. - S On 27 Jan 2012 11:08, "Eric" wrote: > Scratch that, the bug is still present. =( > > Sam: "if you remake foo and/or bar I think the issue maybe resolved > even if you don't find the cause to the spookiness" > > Re-make in w

Re: v2.x documentation error / typo

2012-01-27 Thread euromark
yes, it is. the format behind the hood (model level) should always be unified and not dependent on the locale settings of the current user/language/ country etc therefore the format there will always be -MM-DD. how you display the date in the form is your locale choice and is not affected by a

Re: Problem with CakePlugin on shared server

2012-01-27 Thread Eric
Scratch that, the bug is still present. =( Sam: "if you remake foo and/or bar I think the issue maybe resolved even if you don't find the cause to the spookiness" Re-make in what way? The cake lib is upgraded to 2.0.5, so that's replaced. I can't re-bake the files in my app folder since they are

Re: Problem with CakePlugin on shared server

2012-01-27 Thread Eric
Thanks! Sadly, there is no such call on line 547 (2.0.5), but there are three calls to it on other lines. I chucked in $plugin on the two lines missing it (521, 539), and it hasn't exploded yet. I assume this is a known/reported bug that will be fixed in upcoming versions? For the record, I clea

Re: v2.x documentation error / typo

2012-01-27 Thread stig
> On Jan 26, 2:38 pm, stig wrote: > > > In the 2.0 manual. Caused some > > headache.http://book.cakephp.org/2.0/en/models/data-validation.html > > -> Validation::datetime says to  specify datetime format as > > array('datetime', 'dmy'), when really it's supposed to be > > array('datetime' => 'dmy