legacy db with non standard foreignkey hasMany association

2013-08-06 Thread NikNik
Hello, I must work on a pretty old database and I am forced to use a table ( Campaign ) that didn't have a numeric primary key . The former primary key was the field "code" varchar(6). So I had to add an autoincrement id field. Campaign hasMany Users in the Campaign model I then have: public

RE: Naming Question

2013-08-06 Thread Advantage+
That was just a typo and just a sample example. So correct if it was public $actsAs = array('Sortable.Sortable'); and component defined in App controller the question remains the same. In any controller using this where is Cake looking for the sortable->sort function such as "$this->So

userCake with CakePHP

2013-08-06 Thread Sebastien Roy
Hi, I wan't to use userCake with MVC Cake ... I'm not sure where to start... Do I put all the userCake's model files in models folder Cake's app and all the others userCake's files in Controller folder of Cake's app? Thanks, Sebastien -- Like Us on FaceBook https://www.facebook.com/CakePHP F

Re: Rewrite rules - .htaccess issue [Blocked urls] and wrong format.

2013-08-06 Thread Katie
Hi, can anyone help me regarding this .htaccess issue? On Monday, July 22, 2013 8:57:38 AM UTC-5, Katie wrote: > > Hi everyone, I am having an issue with the current .htaccess access. The > developer which I am working with, did some work on it but it still not > 100% working and also i found t

Re: Naming Question

2013-08-06 Thread euromark
It's not Sortable.sortable, but Sortable.Sortable same goes for the behavior of such a plugin: public $actsAs = array('Sortable.Sortable'); Am Dienstag, 6. August 2013 21:02:53 UTC+2 schrieb advantage+: > > Just a quick question, > > > > I downloaded a plugin call it "Sortable" since I do

Naming Question

2013-08-06 Thread Advantage+
Just a quick question, I downloaded a plugin call it "Sortable" since I do not want to knock anyone's work and looking at the plugin I noticed the names of the Model and Component are the same "Sortable". AppController has the component Sortable.sortable in the array. So in any controller

Re: 3.0 Jitters (excited jitters)

2013-08-06 Thread mark_story
Both the new repos (cakephp-framework and cakephp-app) have yet to be created. I would hold off on tinkering until at the first dev release. The database access layer is still incomplete and there isn't any ORM to speak of right now. We're working on getting the ORM more complete so we can get

Re: Multilingual sites and 2 characters language code in URL

2013-08-06 Thread ADmad
Sure you can. Just use the 2 letter codes in url and set the same for Config.language. Keep using 3 letter code for locale directories. The L10n class takes care of mapping the 2 letter codes to 3 letter directories. On Tuesday, August 6, 2013 12:57:45 PM UTC+5:30, her...@springcard.com wrote:

Re: 3.0: a peek into CakePHP's future

2013-08-06 Thread mark_story
I don't think we'll be introducing another tight coupling with a client side framework. In the past we had an integration with prototype, and anyone not using prototype was left out. Choosing something like ember or angular would make CakePHP unsuitable for people wanting to use the other clien

Re: rawurlencode() expects parameter 1 to be string, array given [CORE/Cake/Routing/Route/CakeRoute.php, line 503]

2013-08-06 Thread Jeremy Burns | Class Outfit
Looks like $menuList is an array but a string is expected. Jeremy Burns Class Outfit http://www.classoutfit.com On 6 Aug 2013, at 15:58:54, Nicholas Amon wrote: > Hi, > > I am making this requestAction call in my menu.ctp: > > $menus = $this->requestAction(array( > 'controller'

rawurlencode() expects parameter 1 to be string, array given [CORE/Cake/Routing/Route/CakeRoute.php, line 503]

2013-08-06 Thread Nicholas Amon
Hi, I am making this requestAction call in my menu.ctp: $menus = $this->requestAction(array( 'controller' => 'menus', 'action' => 'menus' ), array( 'pass' => array( $menuList ) )); I am getting the following warning on the page: rawurlencode() expects parameter 1 to be string, array given [CO

Multilingual sites and 2 characters language code in URL

2013-08-06 Thread herve . t
Hello, I'm creating a multiligual website with language code in the URL, for example : http://www.example.com/*fre*/products or : http://www.example.com/*eng*/products or : http://www.example.com/*ita*/products Is there a way to use two letters for the language code ? *fr* instead of *fre*, *it

Re: Download link

2013-08-06 Thread raj kumar Pustela
thank you .. majerle On Tue, Aug 6, 2013 at 7:23 PM, Tilen Majerle wrote: > Check for media view in cake book > Dne 6. avg. 2013 15:43 je "raj kumar Pustela" > napisal/-a: > > Hi to all, >> >> >>how to create download link on website in cakephp 2.0 >>pls help me >> >> Thanks >> Raja

Re: Download link

2013-08-06 Thread Tilen Majerle
Check for media view in cake book Dne 6. avg. 2013 15:43 je "raj kumar Pustela" napisal/-a: > Hi to all, > > >how to create download link on website in cakephp 2.0 >pls help me > > Thanks > Rajakumar.P > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter

Download link

2013-08-06 Thread raj kumar Pustela
Hi to all, how to create download link on website in cakephp 2.0 pls help me Thanks Rajakumar.P -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "Cake

Re: Noob question. Evaluating CakePHP

2013-08-06 Thread Wyatt Biker
Thank you! On Monday, August 5, 2013 11:38:40 AM UTC-4, Wyatt Biker wrote: > > I am evaluating to use CakePHP. > > I need to avoid writing User registration/email confirmation coding. Is > there a plugin/extension for this? > > Also is there a starter project? > > Thanks. > -- Like Us on FaceBo

Re: Noob question. Evaluating CakePHP

2013-08-06 Thread Simon Males
Googled "cakephp user plugin" https://github.com/cakedc/users (And yes I use it). On Mon, Aug 5, 2013 at 11:38 PM, Wyatt Biker wrote: > I am evaluating to use CakePHP. > > I need to avoid writing User registration/email confirmation coding. Is > there a plugin/extension for this? > > Also is th