Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 28 17:20
    rob006 commented #4496
  • Nov 28 17:17
    samdark labeled #4496
  • Nov 28 17:05
    kenguest edited #4496
  • Nov 28 17:05
    what-the-diff[bot] commented #4496
  • Nov 28 17:05
    kenguest opened #4496
  • Nov 21 13:29
    dilyanpalauzov commented #4495
  • Nov 21 13:23
    marcovtwout commented #4495
  • Nov 21 13:18
    marcovtwout commented #4495
  • Nov 21 13:17
    samdark commented #4495
  • Nov 21 13:16
    marcovtwout commented #4495
  • Nov 20 14:53
    samdark milestoned #4495
  • Nov 20 14:53
    samdark milestoned #4495
  • Nov 20 14:53
    samdark commented #4495
  • Nov 20 14:53
    samdark closed #4495
  • Nov 18 11:10
    what-the-diff[bot] commented #4495
  • Nov 18 11:10
    dilyanpalauzov opened #4495
  • Nov 09 16:44
    tonykor closed #4494
  • Nov 09 16:44
    tonykor commented #4494
  • Nov 09 14:23
    Shnoulle commented #4491
  • Nov 09 12:58
    marcovtwout commented #4491
Alexander Makarov
@samdark
but powered by gitter
that's not a thing made with yii
xozoti
@xozoti
hello. How can get URL path to '/media/'?
Alexander Makarov
@samdark
Yii::app()->request->baseUrl . '/media/'
Viriyah Langkaviket
@Gamezxz
I misunderstood.
IIISpikerIII
@IIISpikerIII
Hi, how you can add to the model 2 validation rules? like this
$model->setScenario(['admin_create', 'admin_panel']);
Ihor Skliar
@igogo5yo

@IIISpikerIII
You can create third scenario

public function scenarios()
{
    $admin_create = ['attribute1', 'attribute2'];
    $admin_panel = ['attribute3', 'attribute4'];

    return [
        'admin_create' => $admin_create,
        'admin_panel' => $admin_panel,
        'admin_create_and_panel' => array_merge( $admin_create, $admin_panel)
    ];
}

And use it
$model->setScenario('admin_create_and_panel');

Vasily Belosloodcev
@bupy7
This message was deleted
des1roer
@des1roer
please. tell me how to add phpexcel to project
Nurik
@codder414
Hello to everyone!
Nurik
@codder414
I have the problem. Is there way to tell validator pass "0" value, if validator have the rule "numerical" ? Yii 1.1
I tried "allowEmpty", but it didn't affect for my case.
Alexander Makarov
@samdark
hmm
it should be allowed by default
Ankit Raturi
@ankitraturi
Hi everyone
Is there any extension in yii to invite your facebook, linkedin, twitter, google+ friends?
G.Azamat
@IStranger

Hi everyone

What IDE / plugins you use for efficient work with yii2?
Yii2 into phpDoc used markdown, which does not understand phpShtorm.
For example, instead of the conventional {@link methodName()} used references like [[methodName()]].

In your IDE, these links are clickable?

  • I understand that this is a very good alternative for documentation generator, but now quite difficult to work compared with yii1 (Due to non-standard phpDoc).
Alex
@Alex-Bond
Hey!
PhpStorm still the best IDE for yii.
Actually yii2 was developed in PS
G.Azamat
@IStranger
I agree that phpStorm is best IDE. I see that the developers really well documented (using phpDoc) all source code. But it uncomfortable to use. Maybe there are any additional extensions/plugins for extended support of markdown in phpDoc?
des1roer
@des1roer
How can I pass GridView cell background color?
Nikita
@RedDevilHat
Guys
i need little help
i can't installitions this https://github.com/dektrium/yii2-user on Yii2 Advanced Template
Composer say
Your requirements could not be resolved to an installable set of packages.
Bulgakov Roman
@dikderoy

Hey guys, does anyone encountered an error as such:

usign yii 1.x@latest release, all my code is namespaced, and by some untraceble conditions I got a «class Bla\Blah\B\Iterator not found» execption.

this error happens only on CentOS machines with any precompiled version of PHP5.5 & 5.6

while testing it - code falls on CentOS and works fine on Ubuntu LTS 14.04

Iterator here is an actually native PHP Iterator interface which is used by yii component
Bulgakov Roman
@dikderoy
but somehow PHP makes a mistake while resolving namespaces....
Alexander Makarov
@samdark
xicond
@xicond
How to make all attributes rule, bydefault setAs safe on model form ?
Bulgakov Roman
@dikderoy
@xicond override a rules() callback with such behavior perhaps?)
xicond
@xicond
Is that
Is that the layout used by current yiiframework.ru?
Alexander Makarov
@samdark
no
Doroftey Alexandr
@stixlink
Всем привет!
почему код Yii::app()->assetManager->publish( Yii::getPathOfAlias('ext.js')).'/main.js' на дев сервере возвращает путь assets/5f285af/main.js а на боевом /assets/5f285af/main.js ?
то есть на локальном не подключится скрипт если урл будет site.com/blabla/bla
sorry, wrong chat
ajithfort
@ajithfort
hi
Can i close a modal with jquery?
When i tried i am getting a TypeError: $(…).modal is not a function ERROR
xicond
@xicond
What's modal u use ? Is it from jqueryui ? Is jqueryui loaded? Since u didn't use zii, u need to call for loader jqueryui on yii
ajithfort
@ajithfort
@xicond i found out the error. It was due to the order in which js files have been loading
xicond
@xicond

if I have

'urlManager' => array(
  'rules' => array(
‘form/<gender:(male|female)>' => ’site/form’,
‘contact’ => ‘site/form’,
…
)),

I wanna $_GET[‘gender’] auto transform tobe man|woman, How is it?
I wanna $this->createUrl(‘site/form’,[‘gender’=>’other']); to result "contact?gender=other" since other not in regex (male|female), How is it ?