DebugKit 3.0 installation

2014-09-03 Thread Joe Theuerkauf
Dumb question # 3,582,697: Why is composer installing DebugKit (3.0.*-dev) to /plugins rather than /Plugin? When i follow the idiot-simple (and i should know!) instructions for the DK3 branch, i end up with this: *Fatal error*: Uncaught exception 'Cake\Core\Exception\MissingPluginException'

Handling Date Year Parts With Text/Number Form Fields?

2014-09-03 Thread OJ Tibi - @ojtibi
Hi Folks, I'm using text/number fields to let users input year values that aren't restricted by options, and I was just wondering, what's the best way to handle year parts of a date type using text/number input fields? For example, using `$this->Form->number('my_date.year')` in my add/insert v

Select Option

2014-09-03 Thread Abdelmajid el Ibrahimi
I have a controller where i use this statement: $this->set('docenten',$this->Docenten->find('list',array('fields' => array('Docenten.voornaam'; Then in my view i use: echo $this->Form->select('docenten'); But it wont populate the list, What am I doing wrong? I want a selectbox with value=id

Re: Cake 3 Security Component black holes add with associations

2014-09-03 Thread Kevin Arnett
No, following is the add.ctp: echo $this->Form->input('name'); $Selected =0; if($role != 'admin' && $role != 'prog-admin') { $Selected = $this->resortId; } echo $this->Form->input('user_id', ['title'=>'Promotion Resort/Program','options' => $resorts, 'selected'=>$Selected]); echo $this->Form->inpu

Re: Cake 3 Security Component black holes add with associations

2014-09-03 Thread José Lorenzo
Are you creating the second control with javascript? On Wednesday, September 3, 2014 11:09:19 PM UTC+2, heavyKevy wrote: > > I have promotions owned by a user > and associated with other users. > > The Add screen gives a Select control for selecting the owner and a > multi-select for selecting t

Cake 3 Security Component black holes add with associations

2014-09-03 Thread heavyKevy
I have promotions owned by a user and associated with other users. The Add screen gives a Select control for selecting the owner and a multi-select for selecting the associated users. In PromotionsTable:: public function initialize(array $config) { $this->table('promotions'); $this->displayFiel

Re: Error menu.ctp

2014-09-03 Thread Thomas von Hassel
Your IDE is even marking the error with a red line :) > On 03 Sep 2014, at 13:24, Bprd Codin wrote: > > Hello, > > Problem with my menu.ctp > > error message > > Parse error: syntax error, unexpected 'array' (T_ARRAY), expecting ')' in > /app/View/Elements/menu.ctp on line 1 > > > > my

Re: Paginate Sort on columns from related tables

2014-09-03 Thread John Sposato
Thanks Jose, we will give it a try! On Tuesday, September 2, 2014 10:18:44 AM UTC-4, José Lorenzo wrote: > > you will need to use something like http://github.com/lorenzo/linkable to > make that work > > You add the behavior to the models: $actsAs = ['Linkable.Linkable']; > > Then in your Pagin

Re: Error menu.ctp

2014-09-03 Thread Mike Karthauser
your requestAction(array('controller'=>'pages','action'=>'menu'array('return')));?> is at least missing a comma. On 3 Sep 2014, at 12:24, Bprd Codin wrote: > Hello, > > Problem with my menu.ctp > > error message > > Parse error: syntax error, unexpected 'array' (T_ARRAY), expecting ')' i

Error menu.ctp

2014-09-03 Thread Bprd Codin
Hello, Problem with my menu.ctp error message 1. Parse error: syntax error, unexpected 'array' (T_ARRAY), expecting ')' in /app/View/Elements/menu.ctp on line 1 my menu.ctp 1. requestAction(array ( 'controller'=>'pages','action'=>'menu'arra

Re: Why CakePHP ?

2014-09-03 Thread David Suna
If all you need is a CMS I would suggest using an existing CMS rather than trying to build one yourself in any language. There are many good CMS packages available and some of them are based on CakePHP. CakePHP, or another framework regardless of the language it is based on, is appropriate for

cakephp how to find a field that is joined by related tables

2014-09-03 Thread finsok333
I am new to cakephp and having problem in solving the Class and Subject relations. I have three tables: **studclass** **subjectclass** **subject** idid id class_namestudclassID(foreig

Re: unauthorizedRedirect problem

2014-09-03 Thread jvalecillos
I can confirm this error. It is even present in 2.5.4, but I check that this bug was introduced in 2.5.3 version. On Friday, 1 August 2014 06:26:58 UTC-4:30, Leandro Mouta wrote: > > The same in 2.5.3 =/ > I think the bug fixed was related with loginRedirect. > > If I remove the second paramet