# |
Jul 7th 2018, 02:45 |
braeden |
What version of Cake is that? 2? |
# |
Jul 7th 2018, 02:44 |
braeden |
QueryExpression perhaps? |
# |
Jul 7th 2018, 02:43 |
cpierce |
with CONTAIN ... should i use something else? |
# |
Jul 7th 2018, 02:43 |
cpierce |
but the last one isn't working for me because it isn't joining the CrewMember to employeeid |
# |
Jul 7th 2018, 02:43 |
cpierce |
i wanna do this inside a paginate query |
# |
Jul 7th 2018, 02:43 |
cpierce |
``` $conditions['OR']['Employees.EMPLOYEENAME LIKE'] = '%' . $this->request->data['search_field'] . '%'; $conditions['OR']['Employees.EMPLOYEEID'] = $this->request->data['search_field']; $conditions['OR']['CrewMembers.CREWKEY'] = $this->request->data['search_field']; ``` |
# |
Jul 7th 2018, 02:38 |
cpierce |
can I do a where on a field in a contain table in paginage? |
# |
Jul 7th 2018, 00:43 |
braeden |
Belgiummmmmmmmmm! |
# |
Jul 6th 2018, 21:23 |
itmpls |
ah ok |
# |
Jul 6th 2018, 21:23 |
saeideng |
I mean no need to have empty class , if you no want to use it |
# |
Jul 6th 2018, 21:22 |
itmpls |
so don't bother with it then |
# |
Jul 6th 2018, 21:22 |
saeideng |
since 3.6.6 having `src/Plugin.php` in not necessary |
# |
Jul 6th 2018, 21:21 |
saeideng |
no problem |
# |
Jul 6th 2018, 21:21 |
saeideng |
aha |
# |
Jul 6th 2018, 21:21 |
itmpls |
src/Plugin.php I mean |
# |
Jul 6th 2018, 21:21 |
saeideng |
dont having `bootstrap.php` ? |
# |
Jul 6th 2018, 21:20 |
itmpls |
im working on** |
# |
Jul 6th 2018, 21:20 |
saeideng |
you can see it uses `config/bootstrap.php` by default |
# |
Jul 6th 2018, 21:20 |
itmpls |
i see in the project ive done a few of them don't even have it |
# |
Jul 6th 2018, 21:20 |
itmpls |
Plugin.php is optional? |
# |
Jul 6th 2018, 21:20 |
saeideng |
default hook is ``` public function bootstrap(PluginApplicationInterface $app) { $bootstrap = $this->getConfigPath() . 'bootstrap.php'; if (file_exists($bootstrap)) { require $bootstrap; } } ``` |
# |
Jul 6th 2018, 21:19 |
itmpls |
ah |
# |
Jul 6th 2018, 21:19 |
saeideng |
it uses default hook |
# |
Jul 6th 2018, 21:19 |
saeideng |
if you dont have this hook |
# |
Jul 6th 2018, 21:19 |
saeideng |
you can move bootstrap into hook on this class |
# |
Jul 6th 2018, 21:18 |
saeideng |
it depends on your `src/Plugin.php` class |
# |
Jul 6th 2018, 21:17 |
itmpls |
misread I suppose |
# |
Jul 6th 2018, 21:17 |
itmpls |
oh ok, nevermind |
# |
Jul 6th 2018, 21:17 |
saeideng |
no why? |
# |
Jul 6th 2018, 21:17 |
itmpls |
so they won't get deprecated? |
# |
Jul 6th 2018, 21:16 |
saeideng |
> but what about in my plugin itself? are routes.php/bootstrap.php still used? yes by default |
# |
Jul 6th 2018, 21:16 |
joopm |
github powershell is installed |
# |
Jul 6th 2018, 21:15 |
joopm |
but should use the add command for each invidual files?? |
# |
Jul 6th 2018, 21:15 |
itmpls |
joopm if you have windows, use tortoisegit or git init / git add . |
# |
Jul 6th 2018, 21:15 |
joopm |
yes my personal |
# |
Jul 6th 2018, 21:15 |
saeideng |
your personal project? |
# |
Jul 6th 2018, 21:15 |
itmpls |
.. in the plugin itself |
# |
Jul 6th 2018, 21:15 |
itmpls |
@saeideng but what about in my plugin itself? are routes.php/bootstrap.php still used? |
# |
Jul 6th 2018, 21:14 |
joopm |
i want to use the github for my project |
# |
Jul 6th 2018, 21:14 |
saeideng |
document ^^ |
# |
Jul 6th 2018, 21:14 |
saeideng |
https://book.cakephp.org/3.0/en/plugins.html#loading-a-plugin |