Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

column status cannot read #22

Open
andregeges opened this issue Sep 5, 2014 · 1 comment
Open

column status cannot read #22

andregeges opened this issue Sep 5, 2014 · 1 comment

Comments

@andregeges
Copy link

This is my Presenter

if($this->status == 'pending'){ 
     echo '<span class="label label-teal"><span class="ico-file"></span> PENDING</span>';
}

i can call others column like
$this->id
$this->employee_id

but when i called $this->status it give me an error

ErrorException (E_UNKNOWN) 
Undefined property: RequisitionPresenter::$status 

this is my table

                        $table->increments('id'); 
            $table->integer('employee_id');  
            $table->timestamps();
            $table->integer('created_by');
            $table->integer('updated_by'); 
            $table->string('status')->default('pending');
            $table->datetime('status_at');
            $table->integer('status_by');
            $table->text('status_notes'); 
@fer-ri
Copy link

fer-ri commented Sep 30, 2014

Try something like this

if($this->entity->status == 'pending'){ 
     echo '<span class="label label-teal"><span class="ico-file"></span> PENDING</span>';
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants