title: How to get a proper cms link (with pretty url) from smarty in prestashop?
body: <p>If I want to link to a cms page from a template with smarty, I currently use something like this:</p>
  
  <pre><code>{$link-&gt;getPageLink('cms',null,null,'id_cms=4')}
  </code></pre>
  
  <p>But that is going to generate a regular url (with query string), so if I activate pretty urls (url rewrite), it won't work. I analized the Link class but I can't find a way to generate a proper rewritten url. In fact, THERE IS a simple way:</p>
  
  <pre><code>{$link-&gt;getCMSLink(4)}
  </code></pre>
  
  <p>BUT, taking a look into Link::getCMSLink notes, I read that using an ID instead of a CMS object is deprecated. But from a template I don't have the cms object available.</p>
  
  <p>Anyone had the same problem? </p>