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:
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
Post a Comment