In Controller
1
Obtain layout.
In Controller
$ This-> getlayout ()-> getblock ('head ')
That is:
Mage: getsingleton ('Core/layout ')-> getblock ('head ')
2
In controller:
$ This-> _ addcontent ($ this-> getlayout ()-> createblock ('blog/manage_blog_edit '))
Yes
$ This-> getlayout ()-> getblock ('content')-> append ($ this-> getlayout ()-> createblock ('blog/manage_blog_edit '));
$ This-> _ addcontent ($ this-> getlayout ()-> createblock ('blog/manage_blog_edit '))
-> _ Addleft ($ this-> getlayout ()-> createblock ('blog/manage_blog_edit_tabs '));
3
// Start painting Method
$ This-> loadlayout ();
// Draw the image.
$ This-> renderlayout ();
Redirection.
$ This-> _ redirect ('*/*/');
4
Obtain the information of the logged-in account.
Mage: getsingleton ('admin/session')-> getuser ()-> getfirstname ()
Mage: getsingleton ('admin/session')-> getuser ()-> getlastname ()
5
get the current category ---- mage_catalog_model_category
Mage: getsingleton ('catalog/lay')-> getcurrentcategory ()