# |
Oct 8th 2016, 05:11 |
justinatack |
@graziel nice tip thanks. I guess I still need help with the CASE |
# |
Oct 8th 2016, 04:42 |
graziel |
try it with OrderDesc http://api.cakephp.org/3.3/class-Cake.Database.Query.html#_orderDesc it can get expression as param |
# |
Oct 8th 2016, 04:35 |
justinatack |
@graziel any other ideas? |
# |
Oct 8th 2016, 04:30 |
justinatack |
Yes I did but they show them used with where statements |
# |
Oct 8th 2016, 04:22 |
graziel |
did you check http://book.cakephp.org/3.0/en/orm/query-builder.html#case-statements ? |
# |
Oct 8th 2016, 04:07 |
justinatack |
Iâ??m having an issue with sorting a list (DESC) that contains NULLâ??s and dates. The NULLâ??s should be first in the list and then the dates. I have come across a StackOverFlow: http://stackoverflow.com/questions/821798/order-by-date-showing-nulls-first-then-most-recent-dates question that seems to be the solution but Iâ??m not sure how to implement it in CakePHP 3.3 |
# |
Oct 8th 2016, 02:53 |
erwann |
but the last one, read() is still giving me the error eventhough i fed it the params it's asking for |
# |
Oct 8th 2016, 02:52 |
erwann |
i fixed the first two by feeding those params into the functions listSources() and describe() |
# |
Oct 8th 2016, 02:52 |
erwann |
thanks that's what i think |
# |
Oct 8th 2016, 02:49 |
turtle_ |
erwann, I've never used the plugin you're using, but those errors look like it could be the wrong version for your cake version |
# |
Oct 8th 2016, 02:41 |
erwann |
(in Cake2) |
# |
Oct 8th 2016, 02:40 |
erwann |
Any idea what I did wrong? |
# |
Oct 8th 2016, 02:40 |
erwann |
Declaration of InstagramSource::read() should be compatible with DataSource::read(Model $Model, $queryData = Array, $recursive = NULL) |
# |
Oct 8th 2016, 02:40 |
erwann |
Declaration of InstagramSource::describe() should be compatible with DataSource::describe($model) |
# |
Oct 8th 2016, 02:40 |
erwann |
Declaration of InstagramSource::listSources() should be compatible with DataSource::listSources($data = NULL) |
# |
Oct 8th 2016, 02:40 |
erwann |
I managed to get the access_token etc... but I can't query anything, I always get these errors: |
# |
Oct 8th 2016, 02:39 |
erwann |
I'm having an issue with an Instagram Datasource for Cake I just installed |
# |
Oct 8th 2016, 02:38 |
erwann |
Hi everyone |
# |
Oct 8th 2016, 02:37 |
turtle_ |
hi, how can I display a different default.ctp for the login? |
# |
Oct 8th 2016, 00:30 |
ra7bi |
what is wrong with ``` $query->where(['distributor_id ='.$this->Auth->User('distributor_id').' OR distributor_id=90 AND Events.start_date >= NOW()']); ``` |
# |
Oct 8th 2016, 00:30 |
slackebot |
='.$this->Auth->User('distributor_id').' OR distributor_id=90 AND Events.start_date >= NOW()']); ``` |
# |
Oct 8th 2016, 00:30 |
ra7bi |
why this query is not working ``` //Change Search method to ParticipantSearch $this->Participants->behaviors()->get('Search')->config('searchConfigMethod', 'ParticipantSearch'); // How i can swtich between two search function here ? $query = $this->Participants->find('search', ['search' => $this->request->query])->contain(['Distributors', 'Events']); $query->where(['distributor_id |
# |
Oct 8th 2016, 00:30 |
ra7bi |
hello |
# |
Oct 7th 2016, 22:48 |
jeremyharris |
one last note: browsing to the plugin asset directly (/supervisor/js/supervisor.js) serves up the asset. It seems the AssetFilter is getting the stamped version somehow |
# |
Oct 7th 2016, 22:46 |
jeremyharris |
hereâ??s a gist of the entire rewrite process for the plugin (â??supervisorâ?) asset. You can see it gets rewritten correctly and goes all the way into the index file: https://gist.github.com/jeremyharris/cf60cb8e65f722388cca9618b763b6d5 |
# |
Oct 7th 2016, 22:41 |
slackebot |
AssetFilter and it seems to get the version stamped one for the plugin, despite being re-written according to the logs |
# |
Oct 7th 2016, 22:41 |
jeremyharris |
hey guys, Iâ??m debugging a htaccess/plugin issue and am at my limit. Basically, Iâ??m rewriting assets to something like `/css/styles.1234.css`, plugin the same, `/plugin/css/style.1234.css`. The rewrite rule runs successfully, loading the app style.css correctly. However, it doesnâ??t load the plugin on correctly (although debugging rewrite I follow the process and it gets rewritten/passed to index correctly). Any further debugging tip |
# |
Oct 7th 2016, 22:28 |
ceeram |
congrats |
# |
Oct 7th 2016, 22:22 |
moose517 |
i just landed my first official job as a web developer \o/ |
# |
Oct 7th 2016, 20:58 |
inoas |
or the netsplit is bad |
# |
Oct 7th 2016, 20:50 |
ankr |
The bakery seems quiet tonight. |
# |
Oct 7th 2016, 19:56 |
inoas |
like via controller->set()? |
# |
Oct 7th 2016, 19:56 |
inoas |
any way to set/assign variables from Crud Actions |
# |
Oct 7th 2016, 19:31 |
shealyw2 |
are the configuration options cached? |
# |
Oct 7th 2016, 19:06 |
mikatone |
*options |
# |
Oct 7th 2016, 19:06 |
mikatone |
where can i get the option list supported by orm get method ? |
# |
Oct 7th 2016, 18:34 |
inoas |
debug($this->_View->request->controller); |
# |
Oct 7th 2016, 18:31 |
inoas |
hm _View |
# |
Oct 7th 2016, 18:30 |
inoas |
inside a helper, how to get the controller name or view object? |
# |
Oct 7th 2016, 18:07 |
nemmons |
@julez in that case your usage of SessionComponent look fine to me. What precisely isn't working? |
# |
Oct 7th 2016, 17:55 |
slackebot |
Action: admad yawns |