AbanteCart Community

AbanteCart Development => Customization help => Topic started by: Green on December 19, 2014, 11:55:14 PM

Title: Creating new extension for admin
Post by: Green on December 19, 2014, 11:55:14 PM
I have created a new extension using developer tool of abantecart in admin. The menu and its url  was created.But the page is not linking with that menu url.I followed all the format they used but it shows "Page not found".What i have missed to do?
Title: Re: Creating new extension for admin
Post by: eCommerce Core on December 20, 2014, 07:10:55 AM
What is the route, the portion of URL with r?
Is the controller that you are creating accessible?

Do not forget to check abantecart log.
Title: Re: Creating new extension for admin
Post by: Green on December 20, 2014, 07:35:43 AM
How to make controller accessible?
Title: Re: Creating new extension for admin
Post by: Green on December 20, 2014, 07:41:56 AM
where can i find abantecart log
Title: Re: Creating new extension for admin
Post by: yonghan on December 20, 2014, 08:24:46 AM
Have you ever code mvc style?Since abantecart is using mvc style.And I suggest you to take a look at existing extension code so you can understand how it works.
Title: Re: Creating new extension for admin
Post by: Green on December 20, 2014, 08:31:32 AM
No.I have never worked in mvc. But thanks for your reply. I went through the extensions.But i couldnt find.
Title: Re: Creating new extension for admin
Post by: yonghan on December 20, 2014, 08:44:03 AM
I suggest you to learn MVC first before creating extension for abantecart,or else you will be stucked.
Here is a quick start:

http://www.abantecart.com/document_wiki/index.php/AbanteCart_Architecture_Overview (http://www.abantecart.com/document_wiki/index.php/AbanteCart_Architecture_Overview)
http://www.sitepoint.com/the-mvc-pattern-and-php-1/ (http://www.sitepoint.com/the-mvc-pattern-and-php-1/)

You can search google too about MVC.

Hope it helps

Title: Re: Creating new extension for admin
Post by: Green on December 20, 2014, 08:53:49 AM
Loads of thanks for 2nd Link
Title: Re: Creating new extension for admin
Post by: yonghan on December 20, 2014, 08:57:01 AM
You're welcome.Good luck with it.  :)
Title: Re: Creating new extension for admin
Post by: Green on December 21, 2014, 12:45:37 AM
Quote
What is the route, the portion of URL with r?

it is trial/trial. i.e(controller/pages/trial/trial.php)