Access to database and importing data to Magento

I am considering building some sort of mechanism, that would import data to Magento database. However, as I read in documentation, it was recommended to use models available in Magento by default if possible.

My question would be, whether it is possible to use model approach, without creating Magento module and then execute this code from command line?

Or the best idea would be to use module, but what if I would intend to build two import mechanisms, where one uses custom table (perhaps I may need one more table for one customization, but this table would stand apart) and another uses tables and models available in Magento?

Answers


To bootstrap Magento and use it from command line create a php file starting with:

<?php
  require_once '../Mage.php'; //correct path to Mage.php
  $app = Mage::app();
  Mage::register('isSecureArea', true);

Need Your Help

create horizontal scrolling UIButton in iOS using UIScrollView in ios 7

ios iphone objective-c button uiscrollview

I'm new to ios development now want give a horizontal scrolling button in my app i dont no wt is the correct method to do it can any pls tell how to make it

Vertical text with CSS3 and HTML5?

html css svg

Using a static web-page, is there a way to rotate text 90 degrees? If so, are there any possible pit-falls with this method?