Answer the question
In order to leave comments, you need to log in
Light tools for the WEB?
lately I had to go deep into the web with C#. and if the choice is obvious for a sharp, then for the web I can’t decide. first coded in npp. Like and syntax holds. then switched to yii and the choice fell on netbeans. but this is such a wild brake !!!
I’m already ready to refuse auto-completion (there’s not a lot of it anyway), but here’s the formatting of the code to the form
public function actionCreate()
{
$model = new Page;
// Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model);
if (isset($_GET['p_parent']))
$model->p_parent = $_GET['p_parent'];
if (isset($_POST['Page']))
{
$model->attributes = $_POST['Page'];
if ($model->save())
//$this->redirect(array('view','id'=>$model->p_id));
{
Yii::app()->user->setFlash('flash', "Успешное создание.");
$this->redirect(array('index'));
}
}
$this->render('create', array(
'model' => $model,
));
//
}
< ? php
/* @var $this PageController */
/* @var $dataProvider CActiveDataProvider */
$this->breadcrumbs = array(
'Страницы', );
? >
< ? php if (Yii::app()->user->hasFlash('flash'))
: ? >
< div class = "info" >
< ? php echo Yii::app()->user->getFlash('flash');
? >
< / div >
< ? php endif;
? >
< ? php
$this->menu = array(
array('label' = > 'Поиск', 'url' = > array('admin')), );
? >
< h1 > Страницы < / h1 >
< ? php
$this->widget('CTreeView', array(
'data' = > $dataTree,
'htmlOptions' = > array(
'id' = > 'treeview-categ',
'class' = > 'treeview-red', //there are some classes that ready to use
), ));
if (!$dataTree)
echo CHtml::link('Создать корневой элемент?', array('page/create?new=true'));
? >
Answer the question
In order to leave comments, you need to log in
PhpStorm and new hardware for it. Without an SSD, lots of RAM and a good processor, it will slow down.
Using Sublime Text 3 and Cloud9 on my server in a docker container.
Happy as an elephant.
You can also look in the direction of Zend_Studio, they have advanced a lot since version 12.
Have a look at our selection - The Software Engineer's Online Handbook - there is also a group - Free Online Coding Tools for Developers
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question