php - Zend paginator css error -


Months ago, I started learning the Zend Framework and MVC conception. I've seen a problem with CSS using the Zand Pageinator. When I open the first page, everything is fine, but when I go to the next pages, the CSS styles break down (in my main file, I have the code from the layout.file). Bootstrap path:

$ paths ['indexController-paginatorAction'] = New Zend_Controller_Router_Route ('/ paginator /: page', array ('module' = & gt; 'default' , 'Controller' = & gt; 'index', 'action' = & gt; 'pignenator', 'page' => 1));

The class that provides text for the text:

  class Application_Model_PaginatorZend_Db_Table_Abstract {protected $ _name = 'text'; Public function getText ($ page, $ count = 1) {$ query = $ this- & gt; Choose (); $ Paginator = New Zend_Paginator (New Zend_Paginator_Adapter_DbSelect ($ query)); $ Paginator- & gt; SetCurrentPageNumber ($ page) - & gt; SetItemCountPerPage ($ count); $ Paginator return; Controller action:  
  public function paragraph action () {$ page = $ this- & gt; GetParam ('Page'); $ Text mode = new Application_Model_Paginator (); $ Text = $ textModel- & gt; GetText ($ page, 1); $ This- & gt; View- & gt; Text = $ text; }  

Pageinator control:

  & lt; Div id = "endorsing-box" & gt; & Lt; Div & gt; & Lt ;? Php $ pageVariable = ($ this- & gt; page)? $ This- & gt; Page: 'Page'? & Gt; & Lt; Div & gt; & Lt; P & gt; Page & lt ;? = $ This- & gt; On? & Gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt; / Div & gt;  

View:

  & lt; Div class = "pag-row" & gt; & Lt ;? = $ This- & gt; Endorsement control ($ - this-> text, 'sliding', array ('paginator.phtml', 'default')); ? & Gt; & Lt; / Div & gt; & Lt; Div & gt; & Lt ;? Php foreach ($ this-> text as $ line) {echo $ row ['text']; }? & Gt; & Lt; / Div & gt;  

Does anyone know what is wrong?


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -