Re: How to set class on form template node with {{attrs}} defined?

2015-04-13 Thread Dieter Gribnitz
I had another look at the code and found that this seems to be a tough nut to crack. Since some templates are called directly from the form helper methods and some attributes get set inside the widgets it is a bit of a problem setting a default class via a single method or in a single place. The

How to set class on form template node with {{attrs}} defined?

2015-04-09 Thread Dieter Gribnitz
I have a question regarding this type of scenario regarding form templates. Lets say I am trying to change the default class of label in the following example: 'nestingLabel' => '{{input}}{{text}}', Doing this wont work since the attrs might also have a class attribute that could cause a doubl

Re: 3.0 change order by a weight column

2015-02-05 Thread Dieter Gribnitz
2 > https://github.com/CakeDC/utils/blob/master/Model/Behavior/ListBehavior.php > > It will need to be updated for the new ORM > > On Thursday, February 5, 2015 at 4:55:20 AM UTC-4:30, Dieter Gribnitz > wrote: >> >> Are there any built in behaviors to deal with

3.0 change order by a weight column

2015-02-05 Thread Dieter Gribnitz
Are there any built in behaviors to deal with reordering entries by a weight column? Lets say I want to move an entry from 5 to 3. 3 should update to a weight key of 4 and 4 should update to a weight key of 5 In addition, how do you set the default field to witch results should be sorted by.

Calling Cells or Helpers from a Widget

2015-01-23 Thread Dieter Gribnitz
Hi, Just wanted to find out if there is any good way to call a Cell, Helper or View object from a Widget. I have a workaround for my current needs but would just like to know if there is a proper way to accomplish this for future reference. Thanks. -- Like Us on FaceBook https://www.facebook.

Re: 3.0 plugin installer path

2015-01-15 Thread Dieter Gribnitz
Never mind. I fixed the issues I had regarding the paths. I forgot that I already converted my bash scripts to cake shell scripts. It was trivially easy to update the paths since I have access to functions like Plugin::path() from within the shell. -- Like Us on FaceBook https://www.facebook.c

3.0 plugin installer path

2015-01-15 Thread Dieter Gribnitz
Hi, I have been using the composer plugin installer for some of the plugins I am working on. I see that the plugins now install to the vendor/namespace/PluginName dir instead of src/Plugins/PluginName. Is there any way for me to configure the installer to install to the Plugins dir instead of ve

Browser caching routes (3.0)

2014-12-01 Thread Dieter Gribnitz
I have a small request. I struggled getting my routes to work properly because firefox was caching routes. Could you please put a note near the beginning of the cache documentation to warn people to turn browser cache off. Here is how you do it in firefox: 1. Enter about:config in url. 2. Search

Re: 3.0 Is it possible to execute console commands from shell tasks?

2014-09-10 Thread Dieter Gribnitz
unction. > > On Wednesday, September 10, 2014 10:59:44 AM UTC+2, Dieter Gribnitz wrote: >> >> Here is a simple scenario. >> I have a shell script in the App\Shell namespace. >> When I run the task I would like to have some console commands such as >> `grunt

3.0 Is it possible to execute console commands from shell tasks?

2014-09-10 Thread Dieter Gribnitz
Here is a simple scenario. I have a shell script in the App\Shell namespace. When I run the task I would like to have some console commands such as `grunt update` triggered. Is it possible to run these types of commands from the ConsoleShell? Some of these tasks may require user input thus it cann

Re: 3.0 Possible to remove column?

2014-08-31 Thread Dieter Gribnitz
Nevermind, I got it working. Pretty obvious. Just tried removeColumn(...) and it works. You might consider mentioning it in the documentation after the addColumn section. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this

3.0 Possible to remove column?

2014-08-31 Thread Dieter Gribnitz
I can't seem to find any method to remove columns via Database/Schema/Table. Is there a way to do this? I am creating an uninstaller for a plugin and this would come in handy. If not I will just use a normal sql query instead. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twi

Re: 3.0 Plugin Installation DB schema setup

2014-08-31 Thread Dieter Gribnitz
as post install scripts you can setup. But it would be better to > let the user run the migrations on their own. > > > On Sunday, August 31, 2014 10:46:49 AM UTC+2, Dieter Gribnitz wrote: >> >> Hi, >> I had a look around on the web and could not find any documentat

3.0 Plugin Installation DB schema setup

2014-08-31 Thread Dieter Gribnitz
Hi, I had a look around on the web and could not find any documentation surrounding the setup of plugins. If there are any documentation surrounding plugin packaging I would greatly appreciate someone pointing me in the right direction. I have managed to set up a simple installer that loads the p

Re: 3.0 Best practice for checkboxes instead of multiselect list

2014-08-12 Thread Dieter Gribnitz
For some reason I always find the answer the second after I post a question. Just found the MultiCheckbox widget. This solves my issu -- 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 t

3.0 Best practice for checkboxes instead of multiselect list

2014-08-12 Thread Dieter Gribnitz
I am trying to implement jstree for a multi select list. I would like to use checkboxes in order to reference the id's of the options via javascript. Is there and easy way to print a multi select list as checkboxes. I see it says something about this ability in the documentation but I can't seem

Re: 3.0 Can you save and create entities simultainiously for belongsToMany relationsips

2014-08-11 Thread Dieter Gribnitz
Thanks, This approach will be a bit difficult to implement since I am working on an abstract class that deals with deeply nested data. Will see if I can make something work along these lines. Think I might have found a small bug relating to the normal non _ids save method. Have posted that quest

3.0 Can you save and create entities simultainiously for belongsToMany relationsips

2014-08-11 Thread Dieter Gribnitz
When saving data that have new relations and a selection of relations only the selection gets updated and new relations get discarded. example post: [id] => 1 [title] => entry 1 [relations] => Array ( [_ids] => Array ( [0] => 1

Re: Extending Core classes?

2014-07-23 Thread Dieter Gribnitz
om/cakephp/cakephp/blob/3.0/src/Controller/Controller.php#L172 > > just re-declare that string so it says App\View\View > > > > On Wednesday, July 23, 2014 11:06:33 AM UTC+2, Dieter Gribnitz wrote: >> >> Is it currently possible to extend core classes in 3.0? >>

Extending Core classes?

2014-07-23 Thread Dieter Gribnitz
Is it currently possible to extend core classes in 3.0? The namespace convention works with most files but how would I go about doing something like this. I would like to modify a method in Cake\View\View Here is what I have tried. I have copied the cakephp/src/View/View.php file to my src/View/