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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-20-2007, 02:48 AM
Junior Member
 
Join Date: Feb 2007
Posts: 26
Default Designing controller and route

Code:
Here's my web structure:
App/
     /Controllers
          /IndexController.php
          /AccountController.php
          /DataController.php
     /Models
     /Views
         /main.tpl.php
         /Index
               /index.tpl.php
         /Account
               /add.tpl.php
               /modify.tpl.php
               /remove.tpl.php
         /Data
               /insert.tpl.php
               /update.tpl.php
               /delete.tpl.php

Lib/
     /Zend.php
     /Zend

Pub/
     /imgs
          /main
                 main_bg.jpg
     /styles
          /main.css
     /scripts
So, basically I assign a template for each action in the controller. The problem is, in my CSS file, I created a style which giving a background image for a DIV in main.tpl.php. And the image path is: Pub/imgs/main/main_bg.jpg.

when I execute: http://mysite, the DIV shows with the background image. But when I execute: http://mysite/Data/Insert, the DIV's background is gone.

I load that CSS into main.tpl.php using Pub/styles/main.css. I notice that other style such as: Font type, font size, is corect. But not the bg image path.

Thanks for any help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2007, 04:18 AM
SpotSec's Avatar
Senior Member
 
Join Date: Feb 2007
Location: United States
Posts: 121
Default

Can you post the code?
__________________
Zym Framework - A Zend Framework extension library w/ demo app

SpotSec Blog:
http://spotsec.com/blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-06-2007, 08:55 AM
Junior Member
 
Join Date: Feb 2007
Posts: 26
Default

no problem, I have found the solution
ThankS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-07-2007, 06:03 PM
Junior Member
 
Join Date: Sep 2007
Posts: 1
Default

Hi Tommy1402, Can you post your solutions ? I have similar your problems
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 03:11 PM.