Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-27-2008, 03:42 PM
Member
 
Join Date: Feb 2008
Posts: 48
Question Style Sheet is missing

Hi,

i am using ZF for my project. While accessing the pages with controller and action, i am getting the output properly. But while sending query string for edit or for some message display, functionality is working but my style sheet is missing . I dont understand why.

Working URL:
http://localhost/index.php/user/new
http://localhost/index.php/user/list

Style Sheet is missing while passing like below.:
http://localhost/index.php/user/edit/id/2
But i can able to get the query string id from
$ids = $this->_request->getParam('id');. Only thing is Style sheet and images in the EDIT page is missing.

I dont know why this is happening

-Mugesh
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 07:39 PM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

Did you set your document root? Did you create an .htaccess file to enable bootstrapping?


7.1.2. Quick Start
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 05:41 AM
Member
 
Join Date: Feb 2008
Posts: 48
Question

The below lines were not there.

require_once 'Zend/Controller/Front.php';
Zend_Controller_Front::run('/path/to/app/controllers');

Instead of this i had

$front = Zend_Controller_Front::getInstance();
$front->setControllerDirectory("application/controllers");
$front->dispatch();// Handles all incoming requests.

And .htaccess.txt was there. Now i replaced .htaccess.txt with .htaccess file. Now i am getting "SERVER ERROR".

Can you plz tell me whats wrong?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 06:37 AM
Member
 
Join Date: Feb 2008
Posts: 48
Question

Here is my html source code. I want to display the Lable and the text filed in the same line and at the right side of the text box i want to give the comments .
eg: [123-1254-4587]
eg: press ctrl+ to select multiple options.
eg: click to popup.

How to do these things. Plz tell me as soon as possible.


HTML Code:
<pre>
        <form name="addUserForm" id="addUserForm" tag="" class="inputField" enctype="application/x-www-form-urlencoded" action="../user/adduser" onSubmit="return validUser()" method="post"><table class="inputField">
<div><label for="optUserType" separator="" class="optional">User Type:</label></div>
<tr class="inputField">
<select name="optUserType" id="optUserType">
    <option value="1" label="Admin">Admin</option>

    <option value="2" label="Trainer">Trainer</option>

</select></tr>
<div><label for="optSecurityGroup" separator="" class="optional">Security Group:</label></div>
<tr class="inputField">
<select name="optSecurityGroup" id="optSecurityGroup">
    <option value="1" label="Group A">Group A</option>
    <option value="2" label="Group B">Group B</option>


</select></tr>
<div><label for="optFacility" separator="" class="optional">Facility:</label></div>
<tr class="inputField">
<select name="optFacility" id="optFacility">
    <option value="1" label="Platinum">Platinum</option>
    <option value="2" label="Gold">Gold</option>


</select></tr>
<div><label for="txtFirstName" separator="" class="optional">* First Name:</label></div>
<tr class="inputField">
<input type="text" name="txtFirstName" id="txtFirstName" value="" /></tr>
<div><label for="txtLastName" separator="" class="optional">* Last Name:</label></div>
<tr class="inputField">
<input type="text" name="txtLastName" id="txtLastName" value="" /></tr>
<div><label for="txtStreet1" separator="" class="optional">* Street1:</label></div>
<tr class="inputField">
<input type="text" name="txtStreet1" id="txtStreet1" value="" /></tr>
<div><label for="txtStreet2" separator="" class="optional">Street2:</label></div>
<tr class="inputField">
<input type="text" name="txtStreet2" id="txtStreet2" value="" /></tr>

<div><label for="txtCity" separator="" class="optional">* City:</label></div>
<tr class="inputField">
<input type="text" name="txtCity" id="txtCity" value="" /></tr>
<div><label for="optState" separator="" class="optional">State:</label></div>
<tr class="inputField">
<select name="optState" id="optState">
    <option value="1" label="CA">CA</option>
    <option value="2" label="NY">NY</option>
</select></tr>
<div><label for="txtZipCode" separator="" class="optional">* Zip Code:</label></div>

<tr class="inputField">
<input type="text" name="txtZipCode" id="txtZipCode" value="" /></tr>
<div><label for="txtHomePhone" separator="" class="optional">* Home Phone:</label></div>
<tr class="inputField">
<input type="text" name="txtHomePhone" id="txtHomePhone" value="" onClick="javascript:alert('Expect 123-456-7890 Formate');" /></tr>
<div><label for="txtWorkPhone" separator="" class="optional">Work Phone:</label></div>
<tr class="inputField">
<input type="text" name="txtWorkPhone" id="txtWorkPhone" value="" /></tr>
<div><label for="txtMobilePhone" separator="" class="optional">Mobile Phone:</label></div>
<tr class="inputField">
<input type="text" name="txtMobilePhone" id="txtMobilePhone" value="" /></tr>
<div><label for="txtEmail" separator="" class="optional">* Email:</label></div>
<tr class="inputField">

<input type="text" name="txtEmail" id="txtEmail" value="" /></tr>
<div><label for="txtHireDate" separator="" class="optional">* Hire Date:</label></div>
<tr class="inputField">
<input type="text" name="txtHireDate" id="txtHireDate" value="" onClick="javascript:displayDatePicker('txtHireDate');return false;" /></tr>
<div></div>
<tr class="inputField">
<input type="hidden" name="userid" value="" id="userid" /></tr>
<dt></dt><dd>
<input type="submit" name="AddUser" id="AddUser" value="AddUser" /></dd></table></form>        </pre>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:25 PM.