Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8696319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:15:01+00:00 2026-06-13T01:15:01+00:00

Each application has instance. When I try propirat way to url mananager ‘application/<slug:[\w+]+>/instance/create/’ =>

  • 0

Each application has instance. When I try propirat way to url mananager

'application/<slug:[\w+]+>/instance/create/' => 'instance/create',
'application/<slug:[\w+]+>/instance/<uuid:[\w0-9]+>/update/' => 'instance/update',

To open a link, set the path in the form of

$this->menu=array(
    array('label'=>'Create Instance', 'url'=>Yii::app()->createUrl('instance/create',  array('slug' => $model->application->slug, 'uuid' => $model->uuid))),
array('label'=>'Update Instance', 'url'=>Yii::app()->createUrl('instance/update', array('slug' => $model->application->slug, 'uuid' => $model->uuid))),

I get an error

include(optional_note.php): failed to open stream: No such file or directory 

What the file and that there has to be done to satisfy the referrals?

Update

public function actionCreate()                                         
{                                                                      
$model=new Instance;                                                  
    $model->application_id = $this->_application->id;                  

// Uncomment the following line if AJAX validation is needed          
// $this->performAjaxValidation($model);                              

if(isset($_POST['Instance']))                                         
{                                                                     
    $model->attributes=$_POST['Instance'];                               
    if($model->save())                                                   
            $this->redirect(array('view','uuid'=>$model->uuid));                
}                                                                     

$this->render('create',array(                                         
    'model'=>$model,                                                     
));                                                                   
}

Update

Now comes the strange behavior, gets the following field parameters

Stack Trace
#3 \yii-1.1.12.b600af\framework\base\CModel.php(285): CValidator::createValidator("optional_note", Instance, "uuid", array(0 => "length", "max" => 128)) 
#4 \yii-1.1.12.b600af\framework\base\CModel.php(259): CModel->createValidators()
#5 \yii-1.1.12.b600af\framework\base\CModel.php(302): CModel->getValidators("uuid")
#6 \yii-1.1.12.b600af\framework\web\helpers\CHtml.php(1197):  CModel->isAttributeRequired("uuid")
#7 \yii-1.1.12.b600af\framework\web\widgets\CActiveForm.php(563): CHtml::activeLabelEx(Instance, "uuid", array()) 
#8 \protected\views\instance\_form.php(25): CActiveForm->labelEx(Instance, "uuid")


 <?php echo $form->errorSummary($model); ?>
 <div class="row">
     <?php echo $form->labelEx($model,'uuid'); ?>
     <?php echo $form->textField($model,'uuid',array('size'=>60,'maxlength'=>128)); ?>
     <?php echo $form->error($model,'uuid'); ?>
 </div>
  <div class="row">
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T01:15:02+00:00Added an answer on June 13, 2026 at 1:15 am

    See:

    CValidator::createValidator("optional_note", Instance, "uuid", array(0 => "length", "max" => 128)), 
    

    Check rules for model

    array('uuid', 'optional_note' ...
    

    It’s wrong, need put column names in same string

    array('uuid, optional_note', ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My application has InstrumentFactory - the only place where I create Instrument instance. Each
My application has a table that contains snapshot inventory data from each year. For
I have various objects in application,and each has isvalid method to test if values
Take for example an application which has users, each of which can be in
We have a Flex application which has several 'pages' worth of content. Each time
I have a ASP.NET web application which has more than 100 pages. Each page
My application uses a large amount of Panda objects. Each Panda has a list
I have an application with multiple forms, each form has the same icon, so
Consider a production planning application with many products. Each product has a list of
I am creating a web application that will have many users. Each user has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.