Questions tagged as 'yii'

2
answers

Run PHP with cron

I need to run a PHP script automatically, and for that I'm using the Cent'os Cron and the project is written with the Yii framework. The fact is that I am trying to add a crontab with: crontab -e And then I add the script path and the momen...
asked by 03.08.2018 / 14:44
0
answers

How do I configure my project done in yii 2 on a web server (cPanel + softaculous)?

Good evening, colleagues, I urgently need your help, I have done my first project with yii framework 2 and I just upload it to a cPanel and softaculous hosting but it does not show anything but errors or the files of my project, it fits highligh...
asked by 25.11.2018 / 08:29
0
answers

how to make two dropdownlists dependent on a dropdownlist in yii

please I need help I thank you in advance. according to the yii information I did it this way but I get an error, I'm not sure it is put in data.DESCRID AND data.DATA 'success' = &' function (data) {$ ("# Pl_Atribemple_NO_CIA"). html (data.DESCR...
asked by 07.11.2018 / 18:51
1
answer

Enable a text box with select

I'm trying to enable a text box with select with jquery Here the code of js <script> $('#RegistroInmueble5DeSeguro_id_moneda').on('change', function (e) { $(this).find('option').each(function () { $(this).removeAttr("disab...
asked by 10.10.2018 / 02:24
1
answer

Yii2 Format Attributes

a query, there is some way to format an attribute in the model either before it is saved or when the query is made. The idea is that for example when it comes to bringing a date, it is formatted to a d-m-yy format to be able to use it directly o...
asked by 25.10.2018 / 01:26
1
answer

Unique Validator Yii2

for the few who use this framework, I am with a problem. There is no way for the validator to work properly, when using it it works and it throws the error message but it also validates it when doing an update, something that should not and does...
asked by 05.09.2018 / 17:25
0
answers

Import driver command yii

Hi I have the following problem as I can import a driver in the run function to execute a command by console in yii 1 framework Yii::import('application.controllers.CreateEmailController'); class emailCommand extends CConsoleCommand {...
asked by 04.09.2018 / 00:01
0
answers

Create REST Web Service to send files from PHP

I am currently working with RestFull web services, so far I have learned to send and receive basic information, (texts, objects, etc.) However, I am required to create a Rest service that receives the name of a file as a parameter to return the...
asked by 28.06.2018 / 19:06
0
answers

Yii I do not work the internal pages

I have a problem with internal tabs that can not be found but the routing is correct. I do not know why this error is due to the fact that only the Home view works, I would appreciate any support. this is a fragment in the modules file...
asked by 09.05.2018 / 21:09
1
answer

Error 500 with wamp

How to solve the 500 error that the wamp gives when you try to access a service. This is the error that the postman shows me    {"code": 500, "message": "CDbConnection failed to open the DB   connection. "," error ": true}     
asked by 30.04.2018 / 20:53