Log message #4121074

# At Username Text
# Mar 1st 2018, 17:26 obinoob check if you php install is working at all
# Mar 1st 2018, 17:25 hakuna the logs appear empty
# Mar 1st 2018, 17:23 savant hakuna: if you are using apache, make sure you enable mod_php
# Mar 1st 2018, 17:22 obinoob hakuna: or tail -f logs/debug.log ?
# Mar 1st 2018, 17:22 savant @bmcwhirter its just the namespace+class name
# Mar 1st 2018, 17:22 obinoob hakuna: what does it say tail -f logs/error.log ?
# Mar 1st 2018, 17:22 bmcwhirter Relative to what?
# Mar 1st 2018, 17:22 savant use \Path\To\cLASS;
# Mar 1st 2018, 17:21 savant @bmcwhirter yeah
# Mar 1st 2018, 17:21 hakuna What can this be?
# Mar 1st 2018, 17:21 hakuna i have a problem rendering cakephp, the ext intl, mbstring, and simplexml are enabled but te browser is showing the php code of the app.php file
# Mar 1st 2018, 17:21 bmcwhirter But I assume I need to put something in a use line, though, wouldn't I?
# Mar 1st 2018, 17:20 hakuna Hello guys
# Mar 1st 2018, 17:18 savant in cake2 you need to require the autoload but otherwise its fine
# Mar 1st 2018, 17:18 savant autoload works in cake3
# Mar 1st 2018, 17:15 bmcwhirter If I added a module (phpseclib/phpseclib) using composer, how so I use it in a custom shell? Do I have to load it first or is it autoloaded?
# Mar 1st 2018, 17:11 obinoob i'm having unknown column in where clause...
# Mar 1st 2018, 16:49 wouterdt @savant I'm sorry, I don't know how to do that. How would that work in CakePHP 2?
# Mar 1st 2018, 16:45 savant wouterdt: ah I see. Maybe just put it in a trait in the plugin, and then include that trait?
# Mar 1st 2018, 16:43 obinoob What possible conditions fit: ...find('list') all registries from Teams where Teams.id AND Users.id are NOT present UserTeams... TableRegistry::get('Teams')->find('list')->where([ ??? ]);
# Mar 1st 2018, 16:42 joe using version 3.3.16
# Mar 1st 2018, 16:41 wouterdt How would I reference that? Would something like 'rule' => 'PluginName.validationFunction' work? And where would I place this function? In the AppModel of the plugin?
# Mar 1st 2018, 16:40 joe then jquery replaces <%= key %> with the int value as approriate
# Mar 1st 2018, 16:40 joe <script id="orderChildrenTemplate" type="text/template"> <?php echo $this->element('orders/order_children'); ?> </script> <a href="#" class="add">Add Child</a>
# Mar 1st 2018, 16:40 joe it get's pulled into the page via:
# Mar 1st 2018, 16:39 slackebot1 value="9">9 Months</option><option value="10">10 Months</option><option value="11">11 Months</option><option value="12">12 Months</option></select>
# Mar 1st 2018, 16:39 joe <select name="orderChildren[<%= key %>][age_months]" class="form-control"><option value="" selected="selected">Months</option><option value="0">0 Months</option><option value="1">1 Months</option><option value="2">2 Months</option><option value="3">3 Months</option><option value="4">4 Months</option><option value="5">5 Months</option><option value="6">6 Months</option><option value="7">7 Months</option><option value="8">8 Months</option><option
# Mar 1st 2018, 16:39 joe I have the html in a template
# Mar 1st 2018, 16:39 savant its just referencing the Plugin class holding the rule.
# Mar 1st 2018, 16:39 savant wouterdt: yeah if its just a rule, you can add it to a validator like normal
# Mar 1st 2018, 16:38 savant what is the html without jquery?
# Mar 1st 2018, 16:38 savant interesting, maybe the name is set weird?
# Mar 1st 2018, 16:35 joe if I don't use jquery and create the element in the view it works fine
# Mar 1st 2018, 16:35 joe yes it's not in $this->request->data
# Mar 1st 2018, 16:35 wouterdt Is there any way to put a custom validation rule in a plugin and use it in a model (not a plugin model)? I'm using CakePHP 2
# Mar 1st 2018, 16:34 savant and what happens if you dont use jquery, does it work?
# Mar 1st 2018, 16:34 savant or doesnt serialize properly?
# Mar 1st 2018, 16:34 savant so is it just not in `$this->request->data`
# Mar 1st 2018, 16:32 joe jquery replaces the $key with the int value
# Mar 1st 2018, 16:31 slackebot1 ]);
# Mar 1st 2018, 16:31 joe I'm using templates so originally that field is defined by: echo $this->Form->select("orderChildren.{$key}.age_months", $ageMonths, [ 'empty' => 'Months', 'div' => false, 'class' => "form-control", 'label' => false, 'required' => false, 'value' => isset($delivery['rental_type']) ? $delivery['rental_type'] : '',