Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 30 15:19
    efrj starred luyadev/luya
  • Jan 30 11:20
    nadar labeled #1904
  • Jan 30 11:20
    nadar assigned #1904
  • Jan 30 11:20
    nadar opened #1904
  • Jan 29 17:25
    PaezRice starred luyadev/luya
  • Jan 29 16:02
    nadar closed #1900
  • Jan 29 16:02

    nadar on master

    use basename for mail attachmen… (compare)

  • Jan 29 14:07
    Domi-cc starred luyadev/luya
  • Jan 29 07:56
    nadar transferred #1903
  • Jan 29 07:56
    nadar commented #1903
  • Jan 29 07:52
    nadar labeled #1903
  • Jan 29 07:52
    nadar assigned #1903
  • Jan 29 07:52
    nadar assigned #1903
  • Jan 26 16:41
    testt23 opened #1903
  • Jan 24 13:53
    yiui starred luyadev/luya
  • Jan 24 12:01
    mamadza starred luyadev/luya
  • Jan 24 09:35
    testt23 starred luyadev/luya
  • Jan 23 14:10
    abennouna starred luyadev/luya
  • Jan 23 11:45
    caasig starred luyadev/luya
  • Jan 23 11:37

    nadar on master

    revert Yii include hirarchy #18… (compare)

Basil
@nadar
you can of course change the structure - or just make sure the virtual host starts in LUYAs public_html folder
mrtrinhvn
@mrtrinhvn
Hi, I'm using CheckboxRelationActiveQuery. The problem is, when listing model data, the thing i need to show not shown
'group_ids' => [
'class' => CheckboxRelationActiveQuery::class,
'query' => $this->getGroups(),
'labelField' => ['ten'],
],
public function ngRestAttributeTypes()
{
return [
'group_ids' => [
'class' => CheckboxRelationActiveQuery::class,
'query' => $this->getGroups(),
'labelField' => ['ten'],
],
'hinh' => 'image',
'ten' => 'text',
'tacdung' => 'text',
'vitri' => 'text',
'cachbam' => 'text',
'chuy' => 'text',
];
}
2018-12-08_221542.png
and the array of group_ids just show as []. but I want to show the 'ten' of Nhom huyet
mrtrinhvn
@mrtrinhvn
'ten' = name
Basil
@nadar
What does getGroups() look like?
mrtrinhvn
@mrtrinhvn
public function getGroups()
{
return $this->hasMany(Nhomhuyet::class, ['id' => 'nhomhuyet_id'])->viaTable(HuyetToNhom::tableName(), ['huyet_id' => 'id']);
}
So, when I add a new Huyet or edit a Huyet, it displays the checkbox with name of Nhom huyet as expected. But when listing Huyet, Nhom huyet shown as [].
I want 'ten' of Nhomhuyet is display, or even click to show the Nhom huyet
Basil
@nadar
@mrtrinhvn this is a "bug" - as on the list page, the items are not display usually as it could have hundreds. Please make an issue in luya admin module repo, so we can improve this behavior.
mrtrinhvn
@mrtrinhvn
I have submit isssue luyadev/luya-module-admin#189
mrtrinhvn
@mrtrinhvn
mrtrinhvn
@mrtrinhvn
Hello
I wonder between using CheckboxRelationActiveQuery and sortRelationModel . Wich is better?
I just started my project, but for the longtime using later. I don't know which is recommended ?
Basil
@nadar
If you expect a large amount of data use CheckboxRelationActiveQuery - the only downside for this is, you can not display i18n casted fields in admin view
mrtrinhvn
@mrtrinhvn
Thank you
Using sortRelationModel, is there anyway to display "Block,Heatting" instead of [{"value":2,"label":"Block"},{"value":1,"label":"Heatting"}]
Basil
@nadar

No please create an issue, this should be easy to ifx/impelement. thank you.

(btw we are generally using https://slack.luya.io instead of gitter, gitter has a very bad notification system ;-/)

mrtrinhvn
@mrtrinhvn
thank you!
mrtrinhvn
@mrtrinhvn
What problem is this
./vendor/bin/luya admin/proxy
Please enter the identifier: lcp5c11e830e4074
Error: Error while sending QUERY packet. PID=18861
The SQL being executed was: SELECT * FROM admin_config WHERE name='lcpProxyIdentifier'
Basil
@nadar
did you run migrate?
Dobrodel
@Dobrodel-TG
Hi!
I have a question on nginx configure before composer install
I did not find in guide on nginx configure
Basil
@nadar
hi @Dobrodel-TG i just answered your question in slack, we prefer slack over gitter.
Corentin Chapatte
@corentinchap
image.png
Hello, I just got a fresh install of the bootstrap4 version of luya, running on xampp, database linked. The page loading take a lot of time and most of the time end with a timeout error or this error
Dennis Krijgsman
@denniskrijgsman_twitter
Is it possible to install luya on a server without composer, i have cpanel on my server
I love to use luya for my projects but it isnt easy to install it anywhere in my opinion
Basil
@nadar
composer is required for luya - of course you can copy the vendor folder, but we never tested or did so. when you have ssh access you can use öiya deployer this will download and install composer as phar file
btw: slack.luya.io
Dennis Krijgsman
@denniskrijgsman_twitter
@nadar Thanks for your awnser im goig to try this
Else it would be cool if theres a way to make this process more simple
Basil
@nadar
We think using composer as base requirement is very common and "state of the art" - therefore we won't go back to the times where uploading pages with FTP was casual :-)
If you have any further questions about LUYA - maybe join the slack community, as gitter is not used that much anymore.
Dennis Krijgsman
@denniskrijgsman_twitter
@nadar i joined slak
mozgobol
@mozgobol
Hello! treemenu does not work. I can not edit the pages of the "Pages"
in luya kickstarter
mozgobol
@mozgobol
mozgobol
@mozgobol
when i click on a menu item - nothing happens
Basil
@nadar
hi @mozgobol i have not recieved any notification (stupid gitter :-D pelase use slack.luya.io) - So you would like to edit a cms page by clicking in the mneu? this should work though
I even could see that you have a purple "active" state icon - so i assume you have made some modifications
SergioCoder61
@SergioCoder61
Filter does not work when upload image.
In my custom Block with Image in extraVars():
'image' => BlockHelper::imageUpload($this->getVarValue('imageId', 'large-thumbnail')),
I expect: the image to be uploaded using a standard filter 'large-thumbnail'. But it does not work. The image is loaded without modification, without applying a filter.
Help, please, to understand how to load the image with the filter.
Basil
@nadar
Hi @SergioCoder61 its because you defined it wrong. the filter info is part of imageUpload and not getVarValue
SergioCoder61
@SergioCoder61
Hello! In DB table cms_nav_item_page_block_item in field json_config_cfg_values text has following form:
{"textnorm":"<div>\u0414\u043e\u043d\u0431\u0430\u0441\u0441 … . In fact this is a Russian text in Cyrillic.
Is this how it should be? Should be the text in the database stored as a string of unicode characters?
I enter normal Russian text into the fields of blocks and see as a result normal Russian text on the pages of the web-site.
Unicode characters in database only. If this is normal - then how to make search in the texts on the web-site?
Basil
@nadar
I am really not an expert about unicode chars, but make sure you have utf8mb4_general_ci set as database charset
also @SergioCoder61 please join slack.luya.io as the gitter notification system is really bad.