# |
Jul 15th 2019, 13:49 |
ricksaccous |
i think i know how to go about it actually |
# |
Jul 15th 2019, 13:48 |
ricksaccous |
custom nesting label covers no label |
# |
Jul 15th 2019, 13:45 |
ricksaccous |
i want a custom inputContainer, no label, and a custom nestingLabel, and a custom checkbox |
# |
Jul 15th 2019, 13:45 |
ricksaccous |
is there an easy way to just create a widget that uses x template instead of y template |
# |
Jul 15th 2019, 12:57 |
okelet |
hi all, i am trying to use custom column types in my migrations, as said in http://docs.phinx.org/en/latest/migrations.html#custom-column-types-default-values, but the doc is not clear for me. how could I create mysql generated stored columns, like in this post https://stackoverflow.com/a/44548610/576138? |
# |
Jul 15th 2019, 12:21 |
mikelthewebguy |
:slightly_smiling_face: |
# |
Jul 15th 2019, 12:21 |
mikelthewebguy |
I am really amazed after seeing fast response from you guys |
# |
Jul 15th 2019, 12:20 |
mikelthewebguy |
but tried this community first time |
# |
Jul 15th 2019, 12:20 |
mikelthewebguy |
i am using cakephp from long time |
# |
Jul 15th 2019, 12:18 |
mikelthewebguy |
but thank you codehead.. appreciate. |
# |
Jul 15th 2019, 12:18 |
mikelthewebguy |
and it worked :slightly_smiling_face: |
# |
Jul 15th 2019, 12:17 |
mikelthewebguy |
i just tried escape |
# |
Jul 15th 2019, 12:17 |
mikelthewebguy |
yes |
# |
Jul 15th 2019, 12:17 |
mikelthewebguy |
I tried that too |
# |
Jul 15th 2019, 12:17 |
conehead |
``` $this->Url->build([ "controller" => "tools", "action" => "getTools", "?" => [ "param1" => "val1", "param2" => "val2" ] ], ['escape' => false]); ``` |
# |
Jul 15th 2019, 12:17 |
dereuromark |
please read the docs, you are not using '?' for assigning query string |
# |
Jul 15th 2019, 12:14 |
mikelthewebguy |
funny thing is that if we try to do urldecode its not converting andamp; back to and |
# |
Jul 15th 2019, 12:14 |
mikelthewebguy |
*querystring |
# |
Jul 15th 2019, 12:14 |
mikelthewebguy |
it shouldn't encode querystrin |
# |
Jul 15th 2019, 12:13 |
mikelthewebguy |
Its generating wrong querystring |
# |
Jul 15th 2019, 12:13 |
mikelthewebguy |
right |
# |
Jul 15th 2019, 12:12 |
conehead |
you mean `and => andamp;` right? |
# |
Jul 15th 2019, 12:12 |
conehead |
Looks like an encoding problem for me |
# |
Jul 15th 2019, 12:11 |
mikelthewebguy |
Anyone has any idea about this ? |
# |
Jul 15th 2019, 12:11 |
mikelthewebguy |
"?get-history?customerId=1andisData=1" |
# |
Jul 15th 2019, 12:11 |
mikelthewebguy |
Instead of: |
# |
Jul 15th 2019, 12:11 |
mikelthewebguy |
Its generating querystring as "?get-history?customerId=1andamp;isData=1" |
# |
Jul 15th 2019, 12:10 |
mikelthewebguy |
$this->Url->build(['controller' => 'History', 'action' => 'getHistory', 'customerId' => '1', 'isData' => '1']) |
# |
Jul 15th 2019, 12:09 |
mikelthewebguy |
If I try to build a URL with multiple querystring parameters, its not working |
# |
Jul 15th 2019, 12:09 |
mikelthewebguy |
I am facing an issue with Url helper's build method |
# |
Jul 15th 2019, 12:08 |
mikelthewebguy |
Hi Guys |
# |
Jul 15th 2019, 12:05 |
Naino |
e I didn't understand how `setHost` works. Thanks. |
# |
Jul 15th 2019, 12:05 |
Naino |
Hi! I'm trying to use `Route->setHost()` without success. I created to same routes with two different host. Those two host are different from my local host. For example I put `app.com`, `app.fr` and my local testing host is `app.local`. Well the first route that is declared is matching, whereas `app.com <> app.local`. Is that normal behavior ? Mayb |
# |
Jul 15th 2019, 11:56 |
conehead |
Hm. Anyone got any idea how to paginate/sort by data that can not be generated via query? |
# |
Jul 15th 2019, 11:41 |
conehead |
You're welcom |
# |
Jul 15th 2019, 11:41 |
felix.robaglia |
not putting all data in a single view, but I need the data from 3 different tables in order to display the informations i want. ^^ Anyways, thanks a lot for your help @conehead ! |
# |
Jul 15th 2019, 11:37 |
conehead |
Although I do not know what exactly you are planning to do...I guess putting all data into a single view is never a good idea. |
# |
Jul 15th 2019, 11:36 |
conehead |
When you created a new project have a look at the `PagesController` and the `routes.php`. It says if you basically just enter the main url, redirect to the PagesController with the action index |
# |
Jul 15th 2019, 11:35 |
conehead |
Yes right. You always need one controller that gathers all the data you need and you will (probably, not always) need one view to display all your data |
# |
Jul 15th 2019, 11:32 |
felix.robaglia |
Okay thanks, this helps a lot. But then I still need one 'parent' controller having an index() function retrieving all the data i need from tables, right ? |
# |
Jul 15th 2019, 11:30 |
conehead |
you have to differentiate between tables and controllers. A controller can access several tables and then passes the data to one single view |