Thanks for replay.
It is view.yml
-------------------------------------------------------------------------
default:
  http_metas:
    content-type: text/html

  metas:
    #title:        symfony project
    #description:  symfony project
    #keywords:     symfony, project
    #language:     en
    #robots:       index, follow

  stylesheets:    [main.css]

  javascripts:    []

  has_layout:     on
  layout:         layout

------------------------------------------------------------------------------
And it is Layout:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>
<title><?php include_slot('title') ?></title>
<link rel="shortcut icon" href="/favicon.ico" />
<?php include_javascripts() ?>
<?php include_stylesheets() ?>
<?php include_http_metas() ?>
<?php include_metas() ?>
</head>
<body>
<div id="container">
<div id="header">
<div id="job_history">
Recent viewed jobs:
<ul>
<?php foreach ($sf_user->getJobHistory() as $job): ?>
<li>
<?php echo link_to($job->getPosition().' - '.$job->getCompany(),
'job_show_user', $job) ?>
</li>
<?php endforeach; ?>
</ul>
</div>
<div class="content">
<h1><a href="/job">
<img src="/images/logo.jpg"
alt="Jobeet Job Board" />
</a></h1>
<div id="sub_header">
<div class="post">
<h2>Ask for people</h2>
<div>
<a href="<?php echo url_for('@job_new') ?>">Post a Job</a>
</div>
</div>
<div class="search">
<h2>Ask for a job</h2>
<form action="" method="get">
<input type="text" name="keywords"
id="search_keywords" />
<input type="submit" value="search" />
<div class="help">
Enter some keywords (city, country, position, ...)
</div>
</form>
</div>
</div>
</div>
</div>
<div id="content">
<?php if ($sf_user->hasFlash('notice')): ?>
<div class="flash_notice">
<?php echo $sf_user->getFlash('notice') ?>
</div>
<?php endif; ?>
<?php if ($sf_user->hasFlash('error')): ?>
<div class="flash_error">
<?php echo $sf_user->getFlash('error') ?>
</div>
<?php endif; ?>
<div class="content">
<?php echo $sf_content ?>
</div>
</div>
<div id="footer">
<div class="content">
<span class="symfony">
<img src="images/
jobeet-mini.png" />
powered by <a href="http://www.symfony-project.org/";>
<img src="images/symfony.gif"
alt="symfony framework" />
</a>
</span>
<ul>
<li><a href="">About Jobeet</a></li>
<li class="feed"><a href="">Full feed</a></li>
<li><a href="">Jobeet API</a></li>
<li class="last"><a href="">Affiliates</a></li>
</ul>
</div>
</div>
</div>
</body>
</html>
------------------------------------------------------------------------------------------------------
And Job Index Template:
<h1>Job List</h1>
<?php use_stylesheet('jobs.css') ?>

  <div id="jobs">
<?php foreach ($categories as $category): ?>
<div class="category_<?php echo Jobeet::slugify($category->getName())
?>">
<div class="category">
<div class="feed">
<a href="">Feed</a>
</div>
<?php echo link_to($category, 'category', $category) ?>
</div>
<?php include_partial('job/list', array('jobs'
=>$category->getActiveJobs(sfConfig::get('app_max_jobs_on_homepage')))) ?>
<?php if (($count = $category->countActiveJobs() -
sfConfig::get('app_max_jobs_on_homepage')) > 0): ?>
<div class="more_jobs">
and <?php echo link_to($count, 'category', $category) ?>
more...
</div>
<?php endif; ?>
</div>
</div>
<?php endforeach; ?>
</div>


  <a href="<?php echo url_for('job/new') ?>">New</a>
---------------------------------------------------------------------------------
And job page source:
<h1>Job List</h1>

  <div id="jobs">
<div class="category_programming">
<div class="category">
<div class="feed">
<a href="">Feed</a>
</div>
<a href="/category/programming"> Programming </a></div>
// apps/frontend/modules/job/templates/_list.php
<table class="jobs">
<tr class="odd">

<td class="location">
France, Paric</td>
<td class="position">
<a href="/job/Company+219my/france-paric/20/web-development">Web
Development</a></td>
<td class="company">
Company 219</td>
</tr>
<tr class="even">
<td class="location">
France, Paric</td>
<td class="position">
<a href="/job/Company+220my/france-paric/21/web-development">Web
Development</a></td>

<td class="company">
Company 220</td>
</tr>
<tr class="odd">
<td class="location">
France, Paric</td>
<td class="position">
<a href="/job/Company+221my/france-paric/22/web-development">Web
Development</a></td>
<td class="company">
Company 221</td>
</tr>
<tr class="even">
<td class="location">

France, Paric</td>
<td class="position">
<a href="/job/Company+222my/france-paric/23/web-development">Web
Development</a></td>
<td class="company">
Company 222</td>
</tr>
<tr class="odd">
<td class="location">
France, Paric</td>
<td class="position">
<a href="/job/Company+223my/france-paric/24/web-development">Web
Development</a></td>
<td class="company">

Company 223</td>
</tr>
<tr class="even">
<td class="location">
France, Paric</td>
<td class="position">
<a href="/job/Company+224my/france-paric/25/web-development">Web
Development</a></td>
<td class="company">
Company 224</td>
</tr>
<tr class="odd">
<td class="location">
France, Paric</td>

<td class="position">
<a href="/job/Company+225my/france-paric/26/web-development">Web
Development</a></td>
<td class="company">
Company 225</td>
</tr>
<tr class="even">
<td class="location">
France, Paric</td>
<td class="position">
<a href="/job/Company+226my/france-paric/27/web-development">Web
Development</a></td>
<td class="company">
Company 226</td>

</tr>
<tr class="odd">
<td class="location">
France, Paric</td>
<td class="position">
<a href="/job/Company+227my/france-paric/28/web-development">Web
Development</a></td>
<td class="company">
Company 227</td>
</tr>
<tr class="even">
<td class="location">
France, Paric</td>
<td class="position">

<a href="/job/Company+228my/france-paric/29/web-development">Web
Development</a></td>
<td class="company">
Company 228</td>
</tr>
</table><div class="more_jobs">
and <a href="/category/programming">21</a>more...
</div>
</div>
</div>
</div>


  <a href="/job/new">New</a>

-----------------------------------------------------------------------------------------------------------
Job page Don't display any thing in  layout !!!!!!!
what's problem?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to