<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — db_pager.inc and session.inc inclusion order]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7000</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7000&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in db_pager.inc and session.inc inclusion order.]]></description>
		<lastBuildDate>Tue, 03 Oct 2017 17:04:46 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: db_pager.inc and session.inc inclusion order]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28818#p28818</link>
			<description><![CDATA[<p><img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Tue, 03 Oct 2017 17:04:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28818#p28818</guid>
		</item>
		<item>
			<title><![CDATA[Re: db_pager.inc and session.inc inclusion order]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28816#p28816</link>
			<description><![CDATA[<p>That is indeed a good find.</p><p>The <strong>function display_db_pager()</strong> is defined in <strong>includes/ui/db_pager_view.inc</strong> which is &quot;include&quot;d in <strong>includes/db_pager.inc</strong> which is &quot;include&quot;d in each table display page. All such pages have your stated order of &quot;include&quot;.</p><p>The pager routines have no need for page security which is used by the session file which needs to come in later. It is possible that some routines in the pager files may be needed by the session file.</p><p>There are functions, includes and code outside of the class definition in the session file. Such includes too may need functions available in the pager files that hence need to precede the session file in order of inclusion.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 03 Oct 2017 12:45:37 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28816#p28816</guid>
		</item>
		<item>
			<title><![CDATA[Re: db_pager.inc and session.inc inclusion order]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28815#p28815</link>
			<description><![CDATA[<p>Thanks for the advice. Actually providing the whole may help to fix the issue. <br />anyhow let me tell you the solution, it may either helpful to someone who makes db_pager and stuck this issue,</p><p>This one wont work</p><div class="codebox"><pre><code> include($path_to_root . &quot;/includes/session.inc&quot;);
include($path_to_root . &quot;/includes/db_pager.inc&quot;);
 </code></pre></div><p>and this works fine.</p><div class="codebox"><pre><code> include($path_to_root . &quot;/includes/db_pager.inc&quot;);
include($path_to_root . &quot;/includes/session.inc&quot;); </code></pre></div><p>So the problem is not getting session before pager class.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Tue, 03 Oct 2017 06:18:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28815#p28815</guid>
		</item>
		<item>
			<title><![CDATA[Re: db_pager.inc and session.inc inclusion order]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28805#p28805</link>
			<description><![CDATA[<p>Even providing the whole file here may not be useful. Check your functionality and provide feedback.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 02 Oct 2017 08:19:33 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28805#p28805</guid>
		</item>
		<item>
			<title><![CDATA[Re: db_pager.inc and session.inc inclusion order]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28804#p28804</link>
			<description><![CDATA[<div class="codebox"><pre><code> $cols = array(
        _(&quot;Empl Id&quot;) =&gt; array(&#039;name&#039;=&gt;&#039;empl_id&#039;),
        _(&quot;Empl Name&quot;) =&gt; array(&#039;name&#039;=&gt;&#039;empl_name&#039;),       
        _(&quot;Email&quot;) =&gt; array(&#039;name&#039;=&gt;&#039;email&#039;),
        _(&quot;Mobile No&quot;) =&gt; array(&#039;name&#039;=&gt;&#039;email&#039;),
        _(&quot;Department&quot;) =&gt; array(&#039;name&#039;=&gt;&#039;email&#039;),
        _(&quot;Grade&quot;) =&gt; array(&#039;name&#039;=&gt;&#039;grade&#039;),
        _(&quot;Present Address&quot;) =&gt; array(&#039;name&#039;=&gt;&#039;present_address&#039;),
        _(&quot;Date of Join&quot;) =&gt; array(&#039;name&#039;=&gt;&#039;tran_date&#039;, &#039;type&#039;=&gt;&#039;date&#039;),
        array(&#039;insert&#039;=&gt;true, &#039;fun&#039;=&gt;&#039;edit_link&#039;),
        array(&#039;insert&#039;=&gt;true, &#039;fun&#039;=&gt;&#039;delete_link&#039;)
    );    
    $table =&amp; new_db_pager(&#039;info&#039;, $sql, $cols, null, null, 2);
    $table-&gt;set_marker(&#039;is_inactive&#039;, _(&quot;Marked Employees are either Terminated,Retired,Deceased,Suspended.&quot;), &#039;warning_msg&#039;, &#039;warning_bottom_msg&#039;);
    $table-&gt;width = &quot;80%&quot;;
    display_db_pager($table);</code></pre></div><p> This code within the form and ofcourse it works fine for the core functions like search dimension and gl inquiry.</p><p>I think, its not a problem (include_once or $path_to_root).&nbsp; May be the functionality i wrote is not right.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Mon, 02 Oct 2017 08:11:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28804#p28804</guid>
		</item>
		<item>
			<title><![CDATA[Re: db_pager.inc and session.inc inclusion order]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28801#p28801</link>
			<description><![CDATA[<p>Provide context. The standard FA works fine with db_pager. Hence it must be a <strong>$path_to_root</strong> or <strong>include_once</strong>&nbsp; issue.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 01 Oct 2017 15:41:51 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28801#p28801</guid>
		</item>
		<item>
			<title><![CDATA[db_pager.inc and session.inc inclusion order]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28799#p28799</link>
			<description><![CDATA[<div class="codebox"><pre><code> new_db_pager(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;db_pager&quot; of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in file: /var/www/fa/242/includes/db_pager.inc at line 487</code></pre></div><p> </p><p>I can&#039;t identify the reason for this issue,&nbsp; when the db_pager loads it works fine, But when i click on next page. it throws the above error. </p><p>How do i solve this issue. ?</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Sun, 01 Oct 2017 14:31:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28799#p28799</guid>
		</item>
	</channel>
</rss>
