Show Posts


Messages - huyhoang08

Pages: 1 [2]
16
API Development / Re: form processing controller?
« on: March 15, 2016, 10:22:56 PM »
thank you, now i clearly about abantecart docs,

17
API Development / Re: how to load model from other controller?
« on: March 15, 2016, 11:10:28 AM »
thank you, i sloved my issue, i think PHP model file should have only _ in file name

18
API Development / Re: how to load model from other controller?
« on: March 15, 2016, 09:48:03 AM »
First sory for my english skill.
I cleared about that, But for example:
i have 2 extension activated:
Sory, i mean from one extension i able to load a model belong to other extension?

19
API Development / how to load model from other controller?
« on: March 15, 2016, 03:54:22 AM »
i need to load model from other controller? help me?

20
API Development / Re: form processing controller?
« on: March 07, 2016, 10:23:53 PM »
i hapy to create my own extension, but i don;t know what api for using please guide me a man. Thanks

21
API Development / form processing controller?
« on: March 06, 2016, 12:06:10 AM »
Today i want to add new form processing controller? example: to save data on my google spreadsheet.
can i able to add new processing controller for form?
please tell me how to do it? thank man.

22
Templates / Re: how to create new page template?
« on: March 02, 2016, 10:28:01 PM »
thank you, i sloved my issue.

23
Templates / Re: how to create new page template?
« on: March 02, 2016, 07:49:49 AM »
Sory, you can show me example ?, please.
i found common page controller in path of 'core/engine/page.php'
---------------------------------------------------
//Process disparcher in while in case we have new dispatch back
while ($dispatch_rt){
    //Process main level controller         
    // load page layout
    if ($this->layout) {
        ....
        $dispatch_rt = "common/page";   //how i can override this on each page ?
    }
    //Do the magic
    $dispatch = new ADispatcher($dispatch_rt, array("instance_id" => "0"));
    $dispatch_rt = $dispatch->dispatch();

}
---------------------------------------------------
as you see this line:  $dispatch_rt = "common/page";

how i can override this on each page ?
one more thing, what api i can check current page template? ie: is_home(), is_category()...
Thank a lot.

24
Templates / Re: how to create new page template?
« on: March 01, 2016, 11:27:00 PM »
Sory, i readed abantecart document. Sory for my bad english. For example:
- index page: i want to use custom template (.tpl) . ie: page-home.tpl
- contact page: i want be page-contact.tpl
..
Because abantecart use same 'storefront\view\default\template\common/page.tpl' for all pages on frontend.

I don't want hack into abantecart core file, (if can show me please). i want to use hooks function in abantecart.

25
Templates / how to create new page template?
« on: March 01, 2016, 09:49:22 PM »
i don't know how to change default controller page(storefront/controller/common/page.php) in some pages for different HTML structure.
on other hand, i want to change HTML struct on to parent block (ie: column_left, column_right,...) in different page. Because i understand (controller: page.php) is for all pages in abantecart. Is that true?
Please explain me how to do it. Thank guys.

Pages: 1 [2]

Powered by SMFPacks Social Login Mod