Author Topic: Creating new extension for admin  (Read 8088 times)

Offline Green

  • Newbie
  • *
  • Posts: 36
  • Karma: +4/-1
    • View Profile
Creating new extension for admin
« 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?

Offline eCommerce Core

  • Administrator
  • Hero Member
  • *****
  • Posts: 1602
  • Karma: +93/-1
    • View Profile
Re: Creating new extension for admin
« Reply #1 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.
“If you’re in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent.”
― Warren Buffett

Offline Green

  • Newbie
  • *
  • Posts: 36
  • Karma: +4/-1
    • View Profile
Re: Creating new extension for admin
« Reply #2 on: December 20, 2014, 07:35:43 AM »
How to make controller accessible?

Offline Green

  • Newbie
  • *
  • Posts: 36
  • Karma: +4/-1
    • View Profile
Re: Creating new extension for admin
« Reply #3 on: December 20, 2014, 07:41:56 AM »
where can i find abantecart log

yonghan

  • Guest
Re: Creating new extension for admin
« Reply #4 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.

Offline Green

  • Newbie
  • *
  • Posts: 36
  • Karma: +4/-1
    • View Profile
Re: Creating new extension for admin
« Reply #5 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.

yonghan

  • Guest
Re: Creating new extension for admin
« Reply #6 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.sitepoint.com/the-mvc-pattern-and-php-1/

You can search google too about MVC.

Hope it helps

« Last Edit: December 20, 2014, 08:45:43 AM by handoyo »

Offline Green

  • Newbie
  • *
  • Posts: 36
  • Karma: +4/-1
    • View Profile
Re: Creating new extension for admin
« Reply #7 on: December 20, 2014, 08:53:49 AM »
Loads of thanks for 2nd Link

yonghan

  • Guest
Re: Creating new extension for admin
« Reply #8 on: December 20, 2014, 08:57:01 AM »
You're welcome.Good luck with it.  :)

Offline Green

  • Newbie
  • *
  • Posts: 36
  • Karma: +4/-1
    • View Profile
Re: Creating new extension for admin
« Reply #9 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)

 

Powered by SMFPacks Social Login Mod