#1 July 10, 2019 7:54am

kado_gratis
Member
Registered: July 10, 2019
Posts: 4

how to use bigtree classes and functions (PHP beginner)

Hi, firstly, apologize for my bad english (non-native english)

I'm very new in bigtree cms. I was a joomla cms user before, and I'm looking for better cms which lighter but more powerful than joomla.
I'm impressed with bigtree now. It's looks very light and simpler to develope, especially for PHP beginner.
It also has very good documentation, with all of code reference we can  use to develope website.

My question is very simple :
How can I use those code reference ?

For example,
In the documentation, I found  "BigTreeCMS" link which contains very much function in it.
Let's say I want to use "getLink" function in my php code, so I call the function with :
$cms->getLink($page_id); // correct me if I'm wrong big_smile

Now, how can I call other functions in other classes, i.e : BigTreeModule, BigTree, BigTreeImage, SQL, SQL Wrappers, etc ?

Thanks for answer, and again : sorry for my bad english, wish you can understand what I'm asking for big_smile

Offline

#2 July 16, 2019 9:23am

doon.mok
Member
Registered: May 6, 2015
Posts: 144

Re: how to use bigtree classes and functions (PHP beginner)

BigTree
BigTree::redirect($url = false, $code = ["302"])

BigTreeModule
$module = new module_name
$get = $module->getAll($order = false, $columns = false)

This is how we do it, hope this helps.

Offline

#3 July 24, 2019 8:43pm

kado_gratis
Member
Registered: July 10, 2019
Posts: 4

Re: how to use bigtree classes and functions (PHP beginner)

doon.mok wrote:

BigTree
BigTree::redirect($url = false, $code = ["302"])

BigTreeModule
$module = new module_name
$get = $module->getAll($order = false, $columns = false)

This is how we do it, hope this helps.

Hi, thanks. It helps alot.

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.