PuzzlersWorld.com

  • Hacker Puzzle
  • Interview Puzzles
  • Number Puzzles
  • Maths Puzzles

Before you start development on magento

(3 votes, average: 1.00 out of 5)

August 1, 2012 by puzzler 2 Comments

I have wasted my lot of time while developing on magento. its only because i was not following some basic things needed before you start development on magento. In my opinion if you follow these 4 tips you should be okay!

[break][/break]

1.) DISABLE CACHE : This is the first requirement before you start development on magento. I have seen many people struggling and wondering why their changes are not visible. I also read somewhere that on an average a new developer spends around 2 hours on magento platform wondering why his changes are not visible.

To disable cache

  1. Go to System > Cache Management
  2. Click on Select All(on left).
  3. Select disable from Action dropdown(on right).
  4. And Click on Submit.
(See above instructions explained in the picture below)

2.) Enable Logging:

You might need this, as often which writing php code if you miss some braces or use a function which does not exist you will get error something like this:-

There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: XXXXXXXXXXXXXXX

In this case you might want to check the DB for error log number, but best thing is to enable exception prininting
To enable exception printing

  1.  Go to <magento-installation-dir>/errors folder
  2. rename local.xml.sample file local.xml
And you should be able to see the exception on the screen itself.
[break][/break]

3.) PHP Methods:

Once in a while you might come across an object and you might want to know what all functions exists for that object, one way is to go to the file(you might know where that file is) or the second easier option is to print all the methods in that object. Just add this code in your php file

1
2
3
4
5
<?php
    echo ‘<pre>’;
    print_r(get_class_methods($collection));
    echo ‘</pre>’;
?>

4.) Printing whole object:

You might want to know what values exist in that object then you can use one of the below

<?php
    print_r($obj);
    OR
    print_r($obj->toArray());
?>

If you think that this post helped you in any way, please do write a review or link to this page. Thanks!

  • Share on Whatsapp
  • Share on Facebook
  • Share on Twitter
Facebook Comments
Next Puzzle
HTML Escape | Escape Characters

Checkout more Technical Tags: Solved Puzzles

Comments

  1. umesh says

    July 18, 2013 at 6:22 am

    the information posted here is really very useful……..:)

    Reply
    • puzzlersworld says

      July 18, 2013 at 6:24 am

      Wow, We are really glad to know that 🙂

      Reply

Leave a Comment Cancel reply

Submit your Puzzle

You may also like

  • HTML Escape | Escape Characters
  • How to add new Region/State in Magento
  • Master password hint
  • 8 Steps guide on How to create Magento module
  • Before you start development on magento
  • Magento Plugin for Twitter Card

Categories

  • Aive hi Puzzles
  • Akbar and Birbal
  • Alphabetical Puzzles
  • Bollywood Puzzles
  • Google Code jam
  • Hindi Riddles
  • Interview Puzzles
  • Interview Questions
  • Logical Puzzles
  • Malayalam Puzzles
  • Maths Puzzles
  • Miscellaneous
  • Number Puzzles
  • Picture Puzzles
  • Riddles
  • Tamil Puzzles
  • Technical

Social

  • View puzzlersworld’s profile on Twitter
privacy policy

Copyright © 2025 · eleven40 Pro Theme on Genesis Framework · WordPress · Log in

  • Hacker Puzzle
  • Logo Puzzles
  • Optical Illusions
  • WhatsApp Puzzles
  • Picture Puzzles
  • Riddles
    ▼
    • Hindi Riddles
  • Bollywood Puzzles
  • Alphabetical Puzzles
  • Aive hi Puzzles
  • Interview Puzzles
  • Logical Puzzles
  • Interview Questions
    ▼
    • Data Structures
    • Binary Tree
    • Algorithms
    • Recursion Questions
    • Amazon Interview Questions
    • Snapdeal Interview Questions
    • Google Code jam
  • Technical
  • Akbar and Birbal
  • Number Puzzles
  • Maths Puzzles
  • Miscellaneous