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)

Mohammad Shafiee
@mhd-shf
Thank you @nadar and congratulations on your awesome cms.
tufailkhan215
@tufailkhan215
@nadar hi will we be able to rename the module folder like luya-bootstrap3 to something else that we wanted each time i edit it is showing error with Boot file not found
mrtrinhvn
@mrtrinhvn
I have problem Error 500
please help me
Basil
@nadar
then you have to provide more infos :-)
mrtrinhvn
@mrtrinhvn
Its seem not working from this line require(DIR . '/../base/vendor/autoload.php');
Basil
@nadar
does php run? what does the error log say?
mrtrinhvn
@mrtrinhvn
require(DIR . '/../vendor/autoload.php');
php run
Basil
@nadar
did you run composer install and the other commands then? did you follow installation instructions?
mrtrinhvn
@mrtrinhvn
I tested the echo "hello worl" and it work
Yes
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!