Author Topic: cegonsoft pvt ltd | Get Skilled for Drupal modules | Smarty and zend  (Read 2134 times)

0 Members and 1 Guest are viewing this topic.

Sharmait007

  • Guest
Drupal is a free, open-source web development platform for online content and user communities

What can You create with Drupal?
With Drupal you can create:
o   Simple n-number-of-pages static website
o   Simple personal homepage
o   Company website
o   Weblog
o   Dating website
o   Myspace-like website

Why you should use Drupal?
o   Easy to use (even if you don't know html, php...)
o   Lots of modules
o   Lots of themes
o   Great established user community
o   You can make a website in terms of hours, even minutes

SMARTY:
Smarty is a template engine for PHP. More specifically, it facilitates a manageable way to separate application logic and content from its presentation.

Some of Smarty's features:
•   It is extremely fast.
•   It is efficient since the PHP parser does the dirty work.
•   No template parsing overhead, only compiles once.
•   It is smart about recompiling only the template files that have changed.
•   You can make custom functions and custom variable modifiers, so the template language is extremely extensible.
•   Configurable template delimiter tag syntax, so you can use {}, {{}}, <!--{}-->, etc.
•   The if/elseif/else/endif constructs are passed to the PHP parser, so the {if ...} expression syntax can be as simple or as complex as you like.
•   Unlimited nesting of sections, ifs, etc. allowed.
•   It is possible to embed PHP code right in your template files, although this may not be needed (nor recommended) since the engine is so customizable.
•   Built-in caching support
•   Arbitrary template sources
•   Custom cache handling functions
•   Plugin architecture

WHAT IS ZEND?
•   Zend is an open source scripting engine developed by company named Zend that wrote PHP as well.
•   The Zend scripting engine provides a modular architecture, and can  also be used in applications outside of PHP.


---------------
Visit Us At:http://www.cegonsoft.com
cegonsoft

1,000 Leads Daily - 3 Day Risk Free Trial

Business Opportunity Leads!


madhusundar

  • Guest
Re: cegonsoft pvt ltd | Get Skilled for Drupal modules | Smarty and zend
« Reply #1 on: September 30, 2011, 03:30:12 AM »
Drupal is a free and open-source content management system (CMS) and content management framework (CMF)
written in PHP and distributed under the GNU General Public License.[2][3][4] It is used as a back-end system for at least 1.5% of all websites worldwide[5][6] ranging from personal blogs to corporate, political, and government sites including whitehouse.gov and data.gov.uk.[7] It is also used for knowledge management and business collaboration.


The Drupal core installation can be used as a brochureware website, a single- or multi-user blog, an Internet forum,
or a community website providing for user-generated content.


The Zend Framework is a powerful open source web application framework for developing PHP 5 web applications. The Zend Framework module is a Drupal API module that makes the framework accessible to other Drupal modules.
Versions For Drupal 7: 2.x: The 2.x branch brings ZF2, currently in development

CEGONSOFT

seamustaylor

  • Guest
Re: cegonsoft pvt ltd | Get Skilled for Drupal modules | Smarty and zend
« Reply #2 on: September 30, 2011, 05:05:03 AM »
Let's create a folder called sites/all/modules/mysite and build a bare-bones mysite.info file using the text editor of your choice.

name = My Site
description = Provides custom functionality for this site
core = 6.x
 
project = "mysite"
package = Other

If we simply created a skeleton mysite.module file, we could already enable our new module, although it wouldn't do anything until we actually added some code to it. The actual act of creating a module is that simple. But let's go ahead and create our form altering module, and then I'll explain it.

<?php
// $Id$
 
/**
 * @file
 * Drupal Module: mysite
 * Adds custom code specific to this Drupal 6 site.
 */
 
/**
 * Implementation of hook_form_alter().
 */
function mysite_form_alter(&$form, &$form_state, $form_id) {
  // print $form_id;
  switch ($form_id) {
    case 'blog_node_form':
      // remove some unwanted node editing fields
      $form['revision_information']['#access'] = 0;
      $form['menu']['#access'] = 0;
      $form['author']['#access'] = 0;
      // override node options permissions defined by 'administer nodes'
      $form['options']['#access'] = 1;
      $form['options']['status']['#access'] = 1;
      $form['options']['promote']['#access'] = 0;
      $form['options']['sticky']['#access'] = 0;
    break;
    case 'page_node_form':
      // don't ever allow page nodes to be promoted or sticky
      $form['options']['promote']['#access'] = 0;
      $form['options']['sticky']['#access'] = 0;
    break;
  }
}

The comment section at the top is not required, but you should include this to stay consistent with Drupal coding standards.

To implement hook_form_alter, simply create a function called modulename_form_alter, using the parameters shown. Drupal will automatically use this function if it exists in your module.

If you're not sure which form you're altering, uncomment the print $form_id line, and form names will appear at the top of your page. (Remove this line in production environments, of course!)

Notice that we're mostly just ripping out sections of the form. Removing the author section does not work well, however, because it makes all nodes authored by the anonymous user. By disabling the author section of the form, I'm removing the ability to override authorship information even for users who would normally be allowed to do so, like the site administrator.

That's all there is to it, but you may be wondering how I know what values to manipulate. Add the following section of code after (or replacing) the unset commands, and you'll see:

$form['form_array'] = array(
  '#value' => '
'. print_r($form, 1) .'
',
  '#weight' => '99',
);

This piece of code adds a new element, called form_array to the form. It will spit out a big ugly hunk of preformatted text at the end of your node edit form, showing all of the existing form elements, any of which can be altered.

So go ahead and create this simple module on a test site, and have fun. With even a basic understanding of php syntax, you'll be tweaking up those input forms in no time, and your users will love you for removing all of those confusing fields they don't need to see.
cegonsoft

mithunshalom

  • Guest
Re: cegonsoft pvt ltd | Get Skilled for Drupal modules | Smarty and zend
« Reply #3 on: October 03, 2011, 05:48:52 AM »
Dear Seekers,
                      IT-Professions are very challengeable task where you can grow company yourself. It is a drastic growth of your career where you cannot find the same within short period. Here you need to give your innovation at every moment of your situation. At least we use our brain in the working yard almost, to get the output. Almost we would not find the place to give our best shot than the IT-yard. It is very proud to be in IT-field. But people use to say that IT-is a slave profession. But they used to exclaim about their life-style. Every profession has their own style. As per my view lazier person used to say the comment about the IT-es as said previous. Always be foolish to get knowledge Stay hungry again to get knowledge, because knowledge is power.
                          Cegonsoft
provides you this knowledge to get your tremendous career of your life. We are ready to challenge to pull out you to be known by the world. Because Cegonsoft gives you the world class training as per your wish. Cegonsoft provides you not only the training and the placement too. Try with us and grab your career.
                          Always stay foolish and stay hungry. Don’t Cry Try Cegonsoft……….

cegonsoft

samareshmr

  • Guest
Re: cegonsoft pvt ltd | Get Skilled for Drupal modules | Smarty and zend
« Reply #4 on: October 05, 2011, 04:19:10 AM »
Hi,
While having nice reviews, Cegonsoft  is  the best IT training centre who makes  freshers to learn and understand  various technologies quickly and easily and also place them in various multinational companies .They have Experienced and Intelligent Tech Consultants who puts  a lot  of effort and hard work to make all these possible. The HR team has also doing very nice work to provide Soft Skills and guide students according to the Corporate Standard requirements and as a result most of the students are getting placement right after training.

Cegonsoft

1,000 Leads Daily - 3 Day Risk Free Trial

Business Opportunity Leads!


 

P.S. Do you want to see how we made $14,178.00 Dollars Last Month?

Click Here For All The Info!

Free Advertising Forum Post Ads Online