Wednesday, May 8, 2013

How to install Zend framework in Windows


1.Download Zend framework package from http://www.zend.com/en/company/community/downloads

2.unzip all files.

3.i created a folder in C:\program files\zendFramework. (its not necessary)

4.i copied bin and library folder to zendFramework folder. (all other files are not important)

5.then right click on computer->Properties->Advanced system Settings->in advanced tab click Enviromental variables button
In System Variables list select Variable Path then click Edit Button.

6.Then Add a semicolon at the end.

7.then add bin directory path of your zendframework folder after semi colon. in my case C:\program files\zendFramework\bin.
click ok.

8.Then open Command prompt(cmd).

9.type zf show version then it will show zend framework version.

Incase it's showing an error then we can understood that the zf.bat file is missing from our framework folder.
Download zf.bat from http://framework.zend.com/svn/framework/standard/incubator/bin/zf.bat
add zf.bat file to your bin folder.in my case "C:\program files\zendFramework\bin".
Then repeat step 8,9.

DONE..

Tuesday, May 7, 2013

Accessing Drupal’s Login Page After You Have Already Disabled The User Login Block

Drupal is big on user community. By default, a fresh installation of Drupal plops a user login block in the left navigation column. But maybe you’re just getting started with a new site and you don’t want to look pretentious talking about “users” when in fact you are the only one using the site.
Well, turning off the user login block is easy. As with any block, you can disable it via Administer->Site Building->Blocks. However, once you’ve disabled the block for the general public, you will still want to log in. Now what?
To get a login page, browse to the root of your Drupal installation and add “?q=user” to the end of the URL:
http://www.somesite.com/?q=user
or
http://www.somesite.com/install_directory/?q=user
P.S. Here’s to hoping that your site gets big enough that you want to turn the login box back on!!!

Add Virtual Host Apache Wamp windows














1.Create a folder where you want to create a host.

i am created like:C:\websites

2.Then Go to Your Wamp folder open  bin->apache->apache2.2.22->Conf  open httpd.conf file
Search #Include conf/extra/httpd-vhosts.conf then clear comment(#).
Then Save httpd.conf file..

3.Open "Extra" Folder of same Directory Open httpd-vhosts.cof file.
Then Add Name VirtualHost:<Host Name>







Then Add Host Details:


<VirtualHost *:80>
ServerName zf-tutorial.localhost
DocumentRoot c:/websites/zf-test/public
<Directory "c:/websites/zf-test/public">
AllowOverride All
</Directory>
</VirtualHost>












* zf-test->public is my project's main directory.

4.Then goto c:\windows\system32\drivers\etc\ open Hosts file.
Then add 127.0.0.1   <virtualhost Name> in my case i am using  zf-tutorial.localhost.








5.Then Restart all services in wamp server.





















DONE..



ChkModule Not Working in Drupal solved

  1. Unzip the module files to the "sites/all/modules" directory. It should now contain a "ckeditor" directory.
  2. Download standalone CKEditor from http://ckeditor.com/download. Unzip the contents of the "ckeditor" directory from the installation package to the "sites/all/modules/ckeditor/ckeditor" (or "sites/all/libraries/ckeditor") directory. Note: you can skip uploading the "_samples" and "_source" folders.
  3. Enable the module in the "Administration panel > Modules > User Interface" section.
  4. Done..