# |
Jun 17th 2018, 16:26 |
itmpls |
anyone have a suggestion for managing subdomains within a cake setup? dynamic subdomains stored in the db in terms of routing for 3.6+ ? |
# |
Jun 17th 2018, 14:41 |
rudy1976s |
is it possible to delete translation on hasMany ? I have some association with hasMany and dependent set to true: is there a way to let the associated translations deleted too ? |
# |
Jun 17th 2018, 14:40 |
rudy1976s |
Good sunday to all |
# |
Jun 17th 2018, 09:15 |
saeideng |
another option for you ^^ |
# |
Jun 17th 2018, 09:14 |
saeideng |
`$this->request = $this->request->withData('name', 'new name')` |
# |
Jun 17th 2018, 09:11 |
piwi |
$this->request = $this->request->withParsedBody($user); is soluce |
# |
Jun 17th 2018, 09:07 |
piwi |
my goal is populate form to edit user |
# |
Jun 17th 2018, 09:06 |
piwi |
?? |
# |
Jun 17th 2018, 09:06 |
piwi |
how can i use withData to populate request data |
# |
Jun 17th 2018, 09:06 |
piwi |
i want to to populate request data but it will be depreciate into 4.0 version |
# |
Jun 17th 2018, 09:05 |
piwi |
hi everybody |
# |
Jun 16th 2018, 22:53 |
Dino_ |
Not find any useful event to intercept and try to write directly |
# |
Jun 16th 2018, 22:52 |
Dino_ |
Creating "otherTask.php" doesn't list at console as new task |
# |
Jun 16th 2018, 22:52 |
Dino_ |
Creating TemplateTask.php goes to "cannot redeclare class". |
# |
Jun 16th 2018, 22:50 |
saeideng |
:sleeping_accommodation: |
# |
Jun 16th 2018, 22:49 |
ndm |
maybe... it's not really a pressing issue. Gotta go to get some sleep now. night everybody :zzz: |
# |
Jun 16th 2018, 22:49 |
Dino_ |
Hi All. Serious trouble extending bake. "bake template myTable -t myTheme" is working as it should. But I wish to bake an index.ctp with small parts as elements. How to create together Template/MyTable/index.ctp and Template/Element/MyTable/small_part_one_of_many.ctp |
# |
Jun 16th 2018, 22:47 |
saeideng |
just needs a new Issue in github |
# |
Jun 16th 2018, 22:47 |
saeideng |
maybe new method maybe `getNamed` would be useful |
# |
Jun 16th 2018, 22:46 |
saeideng |
you are right |
# |
Jun 16th 2018, 22:45 |
saeideng |
all routes dont have `_name` in options |
# |
Jun 16th 2018, 22:44 |
ndm |
That's not the problem, actually there isn't really a "problem", I can access the name via the routes `options` property. I was just wondering why `getName()` behaves like it behaves :slightly_smiling_face: |
# |
Jun 16th 2018, 22:44 |
saeideng |
use `Hash::get($route->options, '_name', $route->getName())` |
# |
Jun 16th 2018, 22:41 |
saeideng |
for receiving all routes with `_name` |
# |
Jun 16th 2018, 22:40 |
saeideng |
use `RouteCollection::named()` |
# |
Jun 16th 2018, 22:40 |
saeideng |
so |
# |
Jun 16th 2018, 22:38 |
saeideng |
routes are in RouteCollection |
# |
Jun 16th 2018, 22:38 |
saeideng |
routes |
# |
Jun 16th 2018, 22:37 |
ndm |
n8 |
# |
Jun 16th 2018, 22:37 |
ndm |
@saeideng I need to be able to retrieve routes via their names... it's some fancy stuff about linking things internally via specific name patterns, etc... :slightly_smiling_face: |
# |
Jun 16th 2018, 22:35 |
saeideng |
night |
# |
Jun 16th 2018, 22:32 |
saeideng |
why you need returning `_name`? |
# |
Jun 16th 2018, 22:27 |
ndm |
@saeideng `\Cake\Routing\Route\Route` of course... I was just wondering about the technical reason for method to only return the generated route name, and not the configured one. Upon further inspection it seems that checking and storing the routes differently in `RouteCollection::add()` seems to be one of the reasons. |
# |
Jun 16th 2018, 21:55 |
saeideng |
`Get the standardized plugin.controller:action name for a route.` |
# |
Jun 16th 2018, 21:54 |
saeideng |
at least for now |
# |
Jun 16th 2018, 21:54 |
saeideng |
also unrelated to `_name` naming |
# |
Jun 16th 2018, 21:51 |
saeideng |
there is not any class `Cake\Routing\Route` |
# |
Jun 16th 2018, 21:28 |
ndm |
Everybody's asleep, huh? Gotta give it a try before I hop into bed too... anyone knows if there's maybe a specific reason for `\Cake\Routing\Route::getName()` not to return the name defined via the `_name` option when connecting/creating the route? |
# |
Jun 16th 2018, 10:20 |
josbeir |
ok, i'll just use plain phinx for now untill the plugin is updated to 0.10 :slightly_smiling_face: need the newer yaml |
# |
Jun 16th 2018, 09:52 |
lorenzo |
@josbeir better integration and some extra commands |
# |
Jun 16th 2018, 09:49 |
saeideng |
https://book.cakephp.org/3.0/en/migrations.html |