Installing yii2 on localhost

– First download & install xampp for apache and mysql  – – go in terminal: cd /Applications/XAMPP/xamppfiles/htdocs – another command in terminal: curl -sS | php #!/usr/bin/env php if you receive the error: Could not create file /Applications/XAMPP/xamppfiles/htdocs/composer.phar: fopen(/Applications/XAMPP/xamppfiles/htdocs/composer.phar): failed to open stream: Permission denied than you must try to give access to…


Hosting – Ieftin si Bun

Astazi va propun o noua alternativa pentru hosting:

In ultimii 10 ani am colaborat cu mai multe firme de hosting. Serverele celor de la spatiu sunt “reliable” nu pica, iar baietii de la tehnic raspund rapid si bine.

Screen Shot 2015-01-15 at 08.10.50

ATENTIE: preturile de mai sus sunt fara TVA

Add class t0 submit button Yii

If you have a form the submit button looks like this:

<?php echo CHtml::submitButton($model->isNewRecord ? ‘New’ : ‘Save’)); ?>

To add a specific class to it you should make this change:

<?php echo CHtml::submitButton($model->isNewRecord ? ‘New’ : ‘Save’,array(‘class’ => ‘btn btn-primary’)); ?>