# |
Jul 1st 2019, 12:36 |
admad |
then maybe i am mistaken |
# |
Jul 1st 2019, 12:35 |
mdotobie |
the docs say that `{n}` will match any string key |
# |
Jul 1st 2019, 12:34 |
admad |
{n} for numeric only and {s} for string only |
# |
Jul 1st 2019, 12:31 |
mdotobie |
Can someone explain the use cases of the different Hash Path Expression Types? I’m not sure I understand why there are three different types (`{n}`, `{s}`, `{*}`). Why wouldn’t I just use `{*}` for any type of search? |
# |
Jul 1st 2019, 12:27 |
dereuromark |
how do you handle import of many records with e.g. Tags attached. My problem is that it creates the Tags of the same name multiple times, which it shouldnt. But since unique part is done on patching, the actual saving uplicates Anyone else with this issue for Tags plugin or alike? I might need some more logic on beforeSave probably to handle this.. |
# |
Jul 1st 2019, 12:20 |
hollistergraham123 |
I have the following setup but for some reason it’s only recognizing the table class as Depositlogs not DepositLogs any thoughts |
# |
Jul 1st 2019, 12:04 |
conehead |
Actually seems like this was the problem! |
# |
Jul 1st 2019, 12:04 |
conehead |
ah thank you. I will check that |
# |
Jul 1st 2019, 11:59 |
admad |
@conehead for that e.g. to work you either need to use .json extension in URL (with routes extension enabled) or have `Accept: application/json` header in request |
# |
Jul 1st 2019, 11:57 |
conehead |
Hm, not here |
# |
Jul 1st 2019, 11:57 |
ndm |
@conehead The json/xml views will render without template when encountering the `_serialize` view var. |
# |
Jul 1st 2019, 11:55 |
ndm |
@vossen.steven Yep, the `Plugin.php` file is ment to hold the `Plugin` class if that is what you ment, yes :slightly_smiling_face: |
# |
Jul 1st 2019, 11:53 |
slackebot |
view vars that have to be serialized. $this->set('articles', $this->paginate()); // Specify which view vars JsonView should serialize. $this->set('_serialize', 'articles'); } } ``` Will return a json view, but this still requires a view to be created. Theres not even a hint on that page. |
# |
Jul 1st 2019, 11:53 |
conehead |
Am I confused or am I missing the command `$this->RequestHandler->renderAs($this, 'json');` somewhere in this documentation? https://book.cakephp.org/3.0/en/views/json-and-xml-views.html For me it sounds like using ``` class ArticlesController extends AppController { public function initialize() { parent::initialize(); $this->loadComponent('RequestHandler'); } public function index() { // Set the |
# |
Jul 1st 2019, 11:52 |
vossen.steven |
https://book.cakephp.org/3.0/en/plugins.html#plugin-objects |
# |
Jul 1st 2019, 11:51 |
ndm |
@vossen.steven No sure what exactly you mean? |
# |
Jul 1st 2019, 11:47 |
conehead |
Hm? https://book.cakephp.org/1.1/en/ |
# |
Jul 1st 2019, 11:47 |
vossen.steven |
@ndm I assume thats the point of the plugin.php file then? |
# |
Jul 1st 2019, 11:42 |
ich |
cu |
# |
Jul 1st 2019, 11:42 |
ich |
thank you all |
# |
Jul 1st 2019, 11:42 |
ich |
yeh i know :) |
# |
Jul 1st 2019, 11:42 |
hmic |
°-) |
# |
Jul 1st 2019, 11:41 |
ich |
…5850 |
# |
Jul 1st 2019, 11:41 |
ich |
1.1.18 |
# |
Jul 1st 2019, 11:41 |
hmic |
what does the VERSION.txt read? |
# |
Jul 1st 2019, 11:41 |
ich |
1.1 |
# |
Jul 1st 2019, 11:40 |
ich |
we take more attention to all files :P |
# |
Jul 1st 2019, 11:40 |
hmic |
so, which version is it really? |
# |
Jul 1st 2019, 11:40 |
ich |
Yes thanks |
# |
Jul 1st 2019, 11:40 |
hmic |
and 2007 is not 7 years from now ;-P |
# |
Jul 1st 2019, 11:39 |
hmic |
there is a VERSION.txt file |
# |
Jul 1st 2019, 11:39 |
ich |
but still the copyright says 2005-2007 |
# |
Jul 1st 2019, 11:38 |
ich |
ahh yes |
# |
Jul 1st 2019, 11:38 |
hmic |
the version |
# |
Jul 1st 2019, 11:37 |
hmic |
with regards to what ndm just said |
# |
Jul 1st 2019, 11:37 |
ich |
what information? |
# |
Jul 1st 2019, 11:37 |
hmic |
ich: explain how you get that information |
# |
Jul 1st 2019, 11:37 |
ich |
our system is about 7 years old and we look to upgrade it |
# |
Jul 1st 2019, 11:37 |
hmic |
yep |
# |
Jul 1st 2019, 11:37 |
ich |
no seriously 0.2.9 |
# |
Jul 1st 2019, 11:36 |
ndm |
@hmic People keep confusing the `@since` tag with the actual version number... |