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 2019 15:19
    efrj starred luyadev/luya
  • Jan 30 2019 11:20
    nadar labeled #1904
  • Jan 30 2019 11:20
    nadar assigned #1904
  • Jan 30 2019 11:20
    nadar opened #1904
  • Jan 29 2019 17:25
    PaezRice starred luyadev/luya
  • Jan 29 2019 16:02
    nadar closed #1900
  • Jan 29 2019 16:02

    nadar on master

    use basename for mail attachmen… (compare)

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

    nadar on master

    revert Yii include hirarchy #18… (compare)

Basil
@nadar
what does apache/nginx error log says then?
mrtrinhvn
@mrtrinhvn
I did the same on local (windows) it work
I'm using vestacp
Basil
@nadar
so if works local - then you should know its a problem of your webserver
mrtrinhvn
@mrtrinhvn
But this work with some other Yii 2 source code
Basil
@nadar

i dunno vestacp.

but again: what does the webserver error logs say. they will provide what happens

mrtrinhvn
@mrtrinhvn
I intended to give up with luya. But I think, I should tell expert to find out the problem
OK, let me find the logs
Basil
@nadar

the problem is i can not help you if your only answer is: I have problem Error 500

this indicates nothing to me, i need an error from the webserver :-)

mrtrinhvn
@mrtrinhvn
Oh
this cause problem
require(): open_basedir restriction in effect. File(/home/admin/web/hoithapchidao.com/vendor/autoload.php) is not within the allowed path$
Basil
@nadar
so you have to configure the webserver properly, its not LUYA related problem. Maybe check this: https://stackoverflow.com/questions/14465212/php-error-open-basedir-restriction-in-effect
mrtrinhvn
@mrtrinhvn
I know this problem not because lUYA bad
Basil
@nadar
maybe contact your hoster?
mrtrinhvn
@mrtrinhvn
I think we should make change the Directory structure
and who want more secure, change it later
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