# Use of html-\>link helper inside a cell view

**URL:** <https://discourse.cakephp.org/t/use-of-html-link-helper-inside-a-cell-view/4084>\
**Category:** Need Help\
**Created:** [March 24, 2018, 1:40pm UTC](https://discourse.cakephp.org/t/use-of-html-link-helper-inside-a-cell-view/4084 "2018-03-24T13:40:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![adommar](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@adommar](https://discourse.cakephp.org/u/adommar)\
**Post date:** [March 24, 2018, 1:40pm UTC](https://discourse.cakephp.org/t/use-of-html-link-helper-inside-a-cell-view/4084/1 "2018-03-24T13:40:01Z")

</div>

Hi everyone,

Could anyboy tell me if it is possible to use $this-\>html-\>link() inside a cell view?

I’m trying this:

$this-\>Html-\>link(‘Recibo’, [‘action’ =\> ‘nomina’, $var1, $var2, $var3], [‘class’ =\> ‘btn btn-sm btn-primary’]);

but, it (this link button) did not even appear in the rendered view.

What I’m doing wrong?

Please, I’ll really apreciate any help

---

<div class="post-metadata">

**Author:** ![cloudenv](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@cloudenv](https://discourse.cakephp.org/u/cloudenv)\
**Post date:** [March 24, 2018, 1:41pm UTC](https://discourse.cakephp.org/t/use-of-html-link-helper-inside-a-cell-view/4084/2 "2018-03-24T13:41:26Z")

</div>

what do you mean by cell view? Cell in Excel/Calc or cell in table?

---

<div class="post-metadata">

**Author:** ![adommar](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@adommar](https://discourse.cakephp.org/u/adommar)\
**Post date:** [March 24, 2018, 1:44pm UTC](https://discourse.cakephp.org/t/use-of-html-link-helper-inside-a-cell-view/4084/3 "2018-03-24T13:44:30Z")

</div>

Sorry, I’m talking about view cells from cakephp 3.5

---

<div class="post-metadata">

**Author:** ![cloudenv](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@cloudenv](https://discourse.cakephp.org/u/cloudenv)\
**Post date:** [March 24, 2018, 1:46pm UTC](https://discourse.cakephp.org/t/use-of-html-link-helper-inside-a-cell-view/4084/4 "2018-03-24T13:46:14Z")

</div>

So Im of no help here… Lets wait for someone else to help…

---

<div class="post-metadata">

**Author:** ![joserafael](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/joserafael/32/285_2.png) [@joserafael](https://discourse.cakephp.org/u/joserafael)\
**Post date:** [March 24, 2018, 2:57pm UTC](https://discourse.cakephp.org/t/use-of-html-link-helper-inside-a-cell-view/4084/5 "2018-03-24T14:57:36Z")

</div>

Try adding controller:

$this-\>Html-\>link(‘Recibo’, [**‘controller’ =\> ‘Thecontroller’,** ‘action’ =\> ‘nomina’, $var1, $var2, $var3], [‘class’ =\> ‘btn btn-sm btn-primary’]);

---

<div class="post-metadata">

**Author:** ![adommar](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@adommar](https://discourse.cakephp.org/u/adommar)\
**Post date:** [March 24, 2018, 4:43pm UTC](https://discourse.cakephp.org/t/use-of-html-link-helper-inside-a-cell-view/4084/6 "2018-03-24T16:43:38Z")

</div>

Ok. jose. I’ll try and let you know.

---

<div class="post-metadata">

**Author:** ![adommar](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@adommar](https://discourse.cakephp.org/u/adommar)\
**Post date:** [March 25, 2018, 2:17am UTC](https://discourse.cakephp.org/t/use-of-html-link-helper-inside-a-cell-view/4084/7 "2018-03-25T02:17:32Z")

</div>

hi José. I tried. Didn’t work. it is still the same. the link button don’t even appear

---

<div class="post-metadata">

**Author:** ![6120](https://avatars.discourse-cdn.com/v4/letter/6/278dde/32.png) [@6120](https://discourse.cakephp.org/u/6120)\
**Post date:** [March 25, 2018, 10:31am UTC](https://discourse.cakephp.org/t/use-of-html-link-helper-inside-a-cell-view/4084/8 "2018-03-25T10:31:11Z")

</div>

Should’nt it begin width “echo” ?

---

<div class="post-metadata">

**Author:** ![adommar](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@adommar](https://discourse.cakephp.org/u/adommar)\
**Post date:** [March 26, 2018, 1:38pm UTC](https://discourse.cakephp.org/t/use-of-html-link-helper-inside-a-cell-view/4084/9 "2018-03-26T13:38:29Z")

</div>

Done!, Thank Jose, you’re really, right. now is working!!!. Thanks a lot.

---

<div class="post-metadata">

**Author:** ![adommar](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@adommar](https://discourse.cakephp.org/u/adommar)\
**Post date:** [March 26, 2018, 1:40pm UTC](https://discourse.cakephp.org/t/use-of-html-link-helper-inside-a-cell-view/4084/10 "2018-03-26T13:40:11Z")

</div>

I’m sorry, I made a mistake. Thanks a lot 6120, you’re the One!
