Severity: 8192
Message: Return type of CI_Session_files_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 132
Backtrace:
File: /home/palugada/domains/envato.palugada.top/public_html/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/application/controllers/Codecanyon.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/index.php
Line: 315
Function: require_once
Severity: 8192
Message: Return type of CI_Session_files_driver::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 290
Backtrace:
File: /home/palugada/domains/envato.palugada.top/public_html/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/application/controllers/Codecanyon.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/index.php
Line: 315
Function: require_once
Severity: 8192
Message: Return type of CI_Session_files_driver::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 164
Backtrace:
File: /home/palugada/domains/envato.palugada.top/public_html/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/application/controllers/Codecanyon.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/index.php
Line: 315
Function: require_once
Severity: 8192
Message: Return type of CI_Session_files_driver::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 233
Backtrace:
File: /home/palugada/domains/envato.palugada.top/public_html/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/application/controllers/Codecanyon.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/index.php
Line: 315
Function: require_once
Severity: 8192
Message: Return type of CI_Session_files_driver::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 313
Backtrace:
File: /home/palugada/domains/envato.palugada.top/public_html/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/application/controllers/Codecanyon.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/index.php
Line: 315
Function: require_once
Severity: 8192
Message: Return type of CI_Session_files_driver::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/palugada/domains/envato.palugada.top/public_html/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/application/controllers/Codecanyon.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/index.php
Line: 315
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 284
Backtrace:
File: /home/palugada/domains/envato.palugada.top/public_html/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/application/controllers/Codecanyon.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/index.php
Line: 315
Function: require_once
Severity: Warning
Message: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 291
Backtrace:
File: /home/palugada/domains/envato.palugada.top/public_html/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/application/controllers/Codecanyon.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/index.php
Line: 315
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 306
Backtrace:
File: /home/palugada/domains/envato.palugada.top/public_html/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/application/controllers/Codecanyon.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/index.php
Line: 315
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 316
Backtrace:
File: /home/palugada/domains/envato.palugada.top/public_html/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/application/controllers/Codecanyon.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/index.php
Line: 315
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 317
Backtrace:
File: /home/palugada/domains/envato.palugada.top/public_html/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/application/controllers/Codecanyon.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/index.php
Line: 315
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 318
Backtrace:
File: /home/palugada/domains/envato.palugada.top/public_html/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/application/controllers/Codecanyon.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/index.php
Line: 315
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 319
Backtrace:
File: /home/palugada/domains/envato.palugada.top/public_html/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/application/controllers/Codecanyon.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/index.php
Line: 315
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 377
Backtrace:
File: /home/palugada/domains/envato.palugada.top/public_html/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/application/controllers/Codecanyon.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/index.php
Line: 315
Function: require_once
Severity: Warning
Message: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 110
Backtrace:
File: /home/palugada/domains/envato.palugada.top/public_html/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/application/controllers/Codecanyon.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/index.php
Line: 315
Function: require_once
Severity: Warning
Message: session_start(): Session cannot be started after headers have already been sent
Filename: Session/Session.php
Line Number: 143
Backtrace:
File: /home/palugada/domains/envato.palugada.top/public_html/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/application/controllers/Codecanyon.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/index.php
Line: 315
Function: require_once
Severity: 8192
Message: Creation of dynamic property CI_Cache::$apc is deprecated
Filename: libraries/Driver.php
Line Number: 188
Backtrace:
File: /home/palugada/domains/envato.palugada.top/public_html/application/models/DefaultModel.php
Line: 8
Function: driver
File: /home/palugada/domains/envato.palugada.top/public_html/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/application/controllers/Codecanyon.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/index.php
Line: 315
Function: require_once
Severity: 8192
Message: Creation of dynamic property CI_Cache::$file is deprecated
Filename: libraries/Driver.php
Line Number: 188
Backtrace:
File: /home/palugada/domains/envato.palugada.top/public_html/application/models/DefaultModel.php
Line: 8
Function: driver
File: /home/palugada/domains/envato.palugada.top/public_html/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/application/controllers/Codecanyon.php
Line: 6
Function: __construct
File: /home/palugada/domains/envato.palugada.top/public_html/index.php
Line: 315
Function: require_once
By : websource Published On Wednesday, December 17, 2025, 07:17 In PHP Scripts
About
This is a php class made for split into pages content from mysql tables.
You have the two methods of paging content with refresh and with ajax, 3 navigation systems and several template files for displaying items in the database.
You can make settings in three ways:
from the settings file - set default - by admin
when you add your class - overwrite the default - by admin
through the navigation properties bar from browser - by user
How it works?
This class make a query into mysql in the specified table with some requests made in “where” field and then display content using a template, like this:
The class is called after you set 4 attributes: table, where field, template to display, page number
It is checked if other attributes are set when the class is called. if attributes are set, class initializes the variables with these values, if attributes are not set, it initializes the variables with values from settings file
Select rows from database
Calculate how many pages are displayed and write information from the database using the selected template
Import the type and style of navigation system
Ajax version makes the above steps first time, when it displays the first page. After that, the remaining pages are displayed dynamically using JavaScript and XML generated by php.
If you need more articles in the same row you have to set float:left to the template class. Number of articles in the same row is set in the settings file.
This class has 4 required attributes:
table name
where - that can be 1 for select all rows
name of the template file
current page number
The other attributes are optional:
sortby - sort rows by this field from mysql table
nav - name of the file for the navigation model, select it from nav folder
show - set number of articles from mysql per page
arrange - sort rows "asc" or "desc"
//only for non ajax system
antelink - part of url that need to be placed in front of the page number e.g. index.php?id=1&page=
postlink - part of url that need to be placed after page number e.g. &sid=1&title=something
Settings You can set some default values for
nav - navigation system model
sortby - field name
arrange - asc or desc
page - start page number - default is 1
show - number of rows per page
item_in_row
ONLINE DOCS
http://www.websource.ro/pagination/ajax/docs/
ONLINE DEMO
http://www.websource.ro/pagination/ajax/demo.php – ajax version
http://www.websource.ro/pagination/ajax/demo2.php – refresh model