why getPathInfo and createUrl remove ended slash , How to keep it ?
xicond
@xicond
I've got figure it out by urlSuffix
xicond
@xicond
Hello
xicond
@xicond
How to call generator and validator CSRF manually without enable csrf ? I just want to enable for specific action, don't wanna effect the rest of ajax request
Ankit Padia
@InsaneSkull
i want to check row existence in db using CDbCommand. What is the method for that, something like exist() in yii2
Mohamed Cherif Bouchelaghem
@cherifGsoul
@InsaneSkull I dont think something like that already exists, you can make your own method by extending CDbCommand or puting it in your component
Ankit Padia
@InsaneSkull
@cherifGsoul i have already discovered alternative.
Mohamed Cherif Bouchelaghem
@cherifGsoul
@InsaneSkull casting queryScalar to boolean
ok can you share it?
Ankit Padia
@InsaneSkull
i meant not needed to check exist, used queryRow() to solve my problem.
Mohamed Cherif Bouchelaghem
@cherifGsoul
ok
Ankit Padia
@InsaneSkull
I have successfully created cron job, but i want to schedule it using crontab -e but i can't get it working. Tutorial path:* * * * * php/var/www/html/yii1/ protected/yii makefile/make My path:* * * * *php /var/www/html/basic/yii make/make but it's not working, why?
it's yii2 question, but still someone help me with this.
Mohamed Cherif Bouchelaghem
@cherifGsoul
Im not very experienced with this :/
Ankit Padia
@InsaneSkull
@cherifGsoul no problem
:-)
Mohamed Cherif Bouchelaghem
@cherifGsoul
the first make is a command controller?
Ankit Padia
@InsaneSkull
yes
Mohamed Cherif Bouchelaghem
@cherifGsoul
I think pasting the error is more helpful
if you have any
_
Ankit Padia
@InsaneSkull
no errors, but files are not creating every minute
SiteController не может найти представление "_table"
Nurik
@codder414
Здравствуйте, кто знает как сделать так, чтобы в CgridView одна из колонок была select, в котором необходимо прежде выбрать значение, перед тем, как нажать на кнопку добавить. Как связат две эти колонки в CgriDView ?
Куда копать ? Может есть ссылки.
?
Nurik
@codder414
Ребят всем привет. Кто-нибудь знает как подключить модуль YiiBooster (или любой другой модуль), так чтобы он подключал стили и скрипты только по определенному роуту, нужно чтобы все что связано с модулем запускалось только под админкой.
Мда...
Andrey Azarko
@reinq
@codder414 а в чем проблема сделай package в clientScript и в контролере админки подключай его
@codder414 а первый вопрос не могу понять...
Nurik
@codder414
Как работать с урлами, которые не вида контроллер/экшн в urlManager'е ? Например у меня есть такой урл: http://site.com/ru/media/uploads/img-232-21.jpg. Все что идет после языкового префикса - не контроллер. Вот как с такмими роутами работать в urlManager ?
Nurik
@codder414
Ауу народ есть кто ?
Andrey Azarko
@reinq
Так смотря что тебе надо с этого урла
des1roer
@des1roer
есть кто?
вот как Yii::app()->db->createCommand() показать скл?