Re: Check out this CakePHP Job Board - Small Problem

2008-09-08 Thread kujina

Hi Wayne

After I made my last post I could see that the changes probably should
be made in the view.ctp file.
I put in the code you sugested, (I'm 99.9% sure I did it correctly)
but the job listings pages come up completely blank.
Is it becuase the syntax (is that what you call it?) has a mistake in
it?
I did add an apostrophe to the end of ['information_doc] but that
didnt help.


...Thanks...

On Sep 8, 4:33 am, Wayne Fay [EMAIL PROTECTED] wrote:
 Yes, you would alter the view.ctp file. Something along these lines...

 Wayne

  AND THE FOLLOWING IS THE view.ctp FILE

    fieldset
        legendApplication Pack/legend

 ?php if ({$job['Job']['application_form_doc] != null) { ?
        ?php echo $html-image('pdf-icon.gif', array('alt'='',
 'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
 $html-link('Application Form', UPLOADS_URL . /{$job['Job']
 ['application_form_doc']}, array('style'='color: #000; text-
 decoration: none')); ?br /
 ?php } ?

 ?php if ({$job['Job']['job_description_doc] != null) { ?
        ?php echo $html-image('pdf-icon.gif', array('alt'='',
 'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
 $html-link('Job Description', UPLOADS_URL . /{$job['Job']
 ['job_description_doc']}, array('style'='color: #000; text-
 decoration: none')); ?br /
 ?php } ?

 ?php if ({$job['Job']['information_doc] != null) { ?
        ?php echo $html-image('pdf-icon.gif', array('alt'='',
 'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
 $html-link('Information', UPLOADS_URL . /{$job['Job']
 ['information_doc']}, array('style'='color: #000; text-decoration:
 none')); ?
 ?php } ?

    /fieldset
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Check out this CakePHP Job Board - Small Problem

2008-09-08 Thread Wayne Fay

This is unfortunately something you will have to solve yourself, or
with the assistance of a local PHP expert. Perhaps you can find a
decent PHP IDE/editor that will highlight mistakes. Or you could try
right-clicking and view source on the HTML to see the error. Or
check the logs of your webserver or Cake itself to see an error.

Wayne

On Mon, Sep 8, 2008 at 2:21 AM, kujina [EMAIL PROTECTED] wrote:

 Hi Wayne

 After I made my last post I could see that the changes probably should
 be made in the view.ctp file.
 I put in the code you sugested, (I'm 99.9% sure I did it correctly)
 but the job listings pages come up completely blank.
 Is it becuase the syntax (is that what you call it?) has a mistake in
 it?
 I did add an apostrophe to the end of ['information_doc] but that
 didnt help.


 ...Thanks...

 On Sep 8, 4:33 am, Wayne Fay [EMAIL PROTECTED] wrote:
 Yes, you would alter the view.ctp file. Something along these lines...

 Wayne

  AND THE FOLLOWING IS THE view.ctp FILE

fieldset
legendApplication Pack/legend

 ?php if ({$job['Job']['application_form_doc] != null) { ?
?php echo $html-image('pdf-icon.gif', array('alt'='',
 'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
 $html-link('Application Form', UPLOADS_URL . /{$job['Job']
 ['application_form_doc']}, array('style'='color: #000; text-
 decoration: none')); ?br /
 ?php } ?

 ?php if ({$job['Job']['job_description_doc] != null) { ?
?php echo $html-image('pdf-icon.gif', array('alt'='',
 'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
 $html-link('Job Description', UPLOADS_URL . /{$job['Job']
 ['job_description_doc']}, array('style'='color: #000; text-
 decoration: none')); ?br /
 ?php } ?

 ?php if ({$job['Job']['information_doc] != null) { ?
?php echo $html-image('pdf-icon.gif', array('alt'='',
 'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
 $html-link('Information', UPLOADS_URL . /{$job['Job']
 ['information_doc']}, array('style'='color: #000; text-decoration:
 none')); ?
 ?php } ?

/fieldset
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Check out this CakePHP Job Board - Small Problem

2008-09-08 Thread kujina

Oh wow, I seemed to of corrected it to make it work, it seems to work
fine now with the following adjusted on the first line:

?php if ($job['Job']['information_doc'] != null) { ?

?php echo $html-image('pdf-icon.gif', array('alt'='',
'style'='vertical-align: bottom; margin-right: 5px'))
??php echo $html-link('Information', UPLOADS_URL . /{$job['Job']
['information_doc']}, array('target' =
'_blank', 'style'='color: #000; text-decoration: none')); ?
?php } ?


Can anybody confirm that the code looks healthy?




On Sep 8, 5:51 pm, Wayne Fay [EMAIL PROTECTED] wrote:
 This is unfortunately something you will have to solve yourself, or
 with the assistance of a local PHP expert. Perhaps you can find a
 decent PHP IDE/editor that will highlight mistakes. Or you could try
 right-clicking and view source on the HTML to see the error. Or
 check the logs of your webserver or Cake itself to see an error.

 Wayne



 On Mon, Sep 8, 2008 at 2:21 AM, kujina [EMAIL PROTECTED] wrote:

  Hi Wayne

  After I made my last post I could see that the changes probably should
  be made in the view.ctp file.
  I put in the code you sugested, (I'm 99.9% sure I did it correctly)
  but the job listings pages come up completely blank.
  Is it becuase the syntax (is that what you call it?) has a mistake in
  it?
  I did add an apostrophe to the end of ['information_doc] but that
  didnt help.

  ...Thanks...

  On Sep 8, 4:33 am, Wayne Fay [EMAIL PROTECTED] wrote:
  Yes, you would alter the view.ctp file. Something along these lines...

  Wayne

   AND THE FOLLOWING IS THE view.ctp FILE

     fieldset
         legendApplication Pack/legend

  ?php if ({$job['Job']['application_form_doc] != null) { ?
         ?php echo $html-image('pdf-icon.gif', array('alt'='',
  'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
  $html-link('Application Form', UPLOADS_URL . /{$job['Job']
  ['application_form_doc']}, array('style'='color: #000; text-
  decoration: none')); ?br /
  ?php } ?

  ?php if ({$job['Job']['job_description_doc] != null) { ?
         ?php echo $html-image('pdf-icon.gif', array('alt'='',
  'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
  $html-link('Job Description', UPLOADS_URL . /{$job['Job']
  ['job_description_doc']}, array('style'='color: #000; text-
  decoration: none')); ?br /
  ?php } ?

  ?php if ({$job['Job']['information_doc] != null) { ?
         ?php echo $html-image('pdf-icon.gif', array('alt'='',
  'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
  $html-link('Information', UPLOADS_URL . /{$job['Job']
  ['information_doc']}, array('style'='color: #000; text-decoration:
  none')); ?
  ?php } ?

     /fieldset- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Check out this CakePHP Job Board - Small Problem

2008-09-08 Thread Wayne Fay

Good to hear you made it work. As for the healthy code bit, I don't
like the ?php ... ? all over the place personally, but if it works,
this is simply an issue of style preference.

This would be my preference:
?php
  if ($job['Job']['information_doc'] != null)
  {
echo $html-image('pdf-icon.gif', array('alt'='',
'style'='vertical-align: bottom; margin-right: 5px'));
echo $html-link('Information', UPLOADS_URL .
/{$job['Job']['information_doc']}, array('target' ='_blank',
'style'='color: #000; text-decoration: none'));
  }
?

Also, rather than inline-styling of the elements with the style=...
stuff, I would probably make a few CSS classes and apply them. Again,
this is mostly a personal preference.

Wayne

On Mon, Sep 8, 2008 at 2:20 PM, kujina [EMAIL PROTECTED] wrote:

 Oh wow, I seemed to of corrected it to make it work, it seems to work
 fine now with the following adjusted on the first line:

 ?php if ($job['Job']['information_doc'] != null) { ?

 ?php echo $html-image('pdf-icon.gif', array('alt'='',
 'style'='vertical-align: bottom; margin-right: 5px'))
 ??php echo $html-link('Information', UPLOADS_URL . /{$job['Job']
 ['information_doc']}, array('target' =
 '_blank', 'style'='color: #000; text-decoration: none')); ?
 ?php } ?


 Can anybody confirm that the code looks healthy?




 On Sep 8, 5:51 pm, Wayne Fay [EMAIL PROTECTED] wrote:
 This is unfortunately something you will have to solve yourself, or
 with the assistance of a local PHP expert. Perhaps you can find a
 decent PHP IDE/editor that will highlight mistakes. Or you could try
 right-clicking and view source on the HTML to see the error. Or
 check the logs of your webserver or Cake itself to see an error.

 Wayne



 On Mon, Sep 8, 2008 at 2:21 AM, kujina [EMAIL PROTECTED] wrote:

  Hi Wayne

  After I made my last post I could see that the changes probably should
  be made in the view.ctp file.
  I put in the code you sugested, (I'm 99.9% sure I did it correctly)
  but the job listings pages come up completely blank.
  Is it becuase the syntax (is that what you call it?) has a mistake in
  it?
  I did add an apostrophe to the end of ['information_doc] but that
  didnt help.

  ...Thanks...

  On Sep 8, 4:33 am, Wayne Fay [EMAIL PROTECTED] wrote:
  Yes, you would alter the view.ctp file. Something along these lines...

  Wayne

   AND THE FOLLOWING IS THE view.ctp FILE

 fieldset
 legendApplication Pack/legend

  ?php if ({$job['Job']['application_form_doc] != null) { ?
 ?php echo $html-image('pdf-icon.gif', array('alt'='',
  'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
  $html-link('Application Form', UPLOADS_URL . /{$job['Job']
  ['application_form_doc']}, array('style'='color: #000; text-
  decoration: none')); ?br /
  ?php } ?

  ?php if ({$job['Job']['job_description_doc] != null) { ?
 ?php echo $html-image('pdf-icon.gif', array('alt'='',
  'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
  $html-link('Job Description', UPLOADS_URL . /{$job['Job']
  ['job_description_doc']}, array('style'='color: #000; text-
  decoration: none')); ?br /
  ?php } ?

  ?php if ({$job['Job']['information_doc] != null) { ?
 ?php echo $html-image('pdf-icon.gif', array('alt'='',
  'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
  $html-link('Information', UPLOADS_URL . /{$job['Job']
  ['information_doc']}, array('style'='color: #000; text-decoration:
  none')); ?
  ?php } ?

 /fieldset- Hide quoted text -

 - Show quoted text -
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Check out this CakePHP Job Board - Small Problem

2008-09-07 Thread kujina

Wayne,
I just worked out how to remove not null in the information_doc
entry in the DB, so that you dont have to attach a file.
But as I said previously I dont really know any thing about cakephp/
php.
How can I make the Information download link only appear if there is
a file uploaded for it, like so http://82.34.51.7/examp.png

I'm assuming (from my very limited knowledge) that I need to make
changes in these two files?

The following is the contents of the application_config.php

?php

class JobsController extends AppController
{
var $uses = array('Job', 'JobType');

function beforeFilter()
{
if (substr($this-action, 0, 5) == 'admin')
{
$this-__checkSession();
}
}

function index($jobTypeId = null)
{
$conditions = array();
$conditions['AND'] = array('OR' =
array('UNIX_TIMESTAMP(Job.expires)  UNIX_TIMESTAMP(NOW())',
'Job.expires IS NULL'));
if (intval($jobTypeId)  0)
{
array_push($conditions['AND'], JobType.id =
'$jobTypeId');
}

$this-set('jobTypes', $this-JobType-find('list',
array('id', 'name')));
$this-set('currentJobType', $jobTypeId);
$this-set('jobs', $this-Job-findAll($conditions, null,
'Job.expires DESC'));
}

function view($id = null)
{
if ($id == null)
{
$this-redirect('index');
}
$this-Job-id = $id;
$job = $this-Job-read();
if (empty($job))
{
$this-redirect('index');
}
$this-set('job', $job);
}

function admin_index()
{
$this-set('jobs', $this-Job-findAll(null, null,
'Job.expires DESC'));
}

function admin_add()
{
$this-set('job_types', $this-JobType-find('list',
array('id', 'name')));
if (!empty($this-data))
{
// Handle the Application Pack uploads
$this-data['Job']['application_form_doc'] = $this-
__handleUpload($_FILES['application_form_doc']);
$this-data['Job']['job_description_doc'] = $this-
__handleUpload($_FILES['job_description_doc']);
$this-data['Job']['information_doc'] = $this-
__handleUpload($_FILES['information_doc']);

if ($this-Job-save($this-data))
{
$this-flash('The job has been added successfully.',
'index');
}
}
}

function admin_edit($id = null)
{
$this-set('job_types', $this-JobType-find('list',
array('id', 'name')));
if (!empty($this-data))
{

// Handle the Application Pack uploads
$this-data['Job']['application_form_doc'] = $this-
__handleUpload($_FILES['application_form_doc'],
$this-data['Job']['__afdoc']);
$this-data['Job']['job_description_doc'] = $this-
__handleUpload($_FILES['job_description_doc'],
$this-data['Job']['__jddoc']);
$this-data['Job']['information_doc'] = $this-
__handleUpload($_FILES['information_doc'],
$this-data['Job']['__ifdoc']);

// If the expiry date is empty, set it to null
if (trim($this-data['Job']['expires']) == '')
{
// Update the job expires data to null in the DB
$this-Job-query('UPDATE jobs SET jobs.expires = NULL
WHERE jobs.id = ' . $this-data['Job']['id']);
}

// Save the edit data
if ($this-Job-save($this-data))
{
$this-flash('The job has been edited successfully.',
'index');
}
}
else
{
if ($id == null)
{
$this-redirect('index');
}
$this-Job-id = $id;
$job = $this-Job-read();
if (empty($job))
{
$this-redirect('index');
}
$this-data = $job;
}
}

function admin_delete($id = null)
{
$this-Job-id = $id;
$this-Job-del();
$this-flash('The job has been deleted successfully.',
'index');
}

function nonteaching()
{
$this-layout = 'application';
$this-pageTitle = 'Non-Teaching Application Form';
}

function teaching()
{
$this-layout = 'application';
$this-pageTitle = 'Teaching Application Form';
}

function confirmapplication()
{
$this-layout = 'application';
$this-pageTitle = 'Confirm Application';
}

function sendapplication()
{
//$this-layout = 'plain';
$htmlData = $_POST['appData'];
$htmlData = 'htmlheadtitleJob Application/title/
headbody' . $htmlData . '/body/html';

$mailHeaders = From:  . MAIL_FROM . \r\n;
$mailHeaders .= X-Mailer: Job Board 1.0;
$mailHeaders .= MIME-Version: 1.0\r\n;
$mailHeaders .= Content-type: text/html; charset=utf-8;

@mail(MAIL_TO, 'New Job Application', $htmlData,
$mailHeaders);
 

Re: Check out this CakePHP Job Board - Small Problem

2008-09-07 Thread Wayne Fay

Yes, you would alter the view.ctp file. Something along these lines...

Wayne

 AND THE FOLLOWING IS THE view.ctp FILE

   fieldset
   legendApplication Pack/legend

?php if ({$job['Job']['application_form_doc] != null) { ?
   ?php echo $html-image('pdf-icon.gif', array('alt'='',
'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
$html-link('Application Form', UPLOADS_URL . /{$job['Job']
['application_form_doc']}, array('style'='color: #000; text-
decoration: none')); ?br /
?php } ?

?php if ({$job['Job']['job_description_doc] != null) { ?
   ?php echo $html-image('pdf-icon.gif', array('alt'='',
'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
$html-link('Job Description', UPLOADS_URL . /{$job['Job']
['job_description_doc']}, array('style'='color: #000; text-
decoration: none')); ?br /
?php } ?

?php if ({$job['Job']['information_doc] != null) { ?
   ?php echo $html-image('pdf-icon.gif', array('alt'='',
'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
$html-link('Information', UPLOADS_URL . /{$job['Job']
['information_doc']}, array('style'='color: #000; text-decoration:
none')); ?
?php } ?

   /fieldset

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Check out this CakePHP Job Board - Small Problem

2008-09-04 Thread kujina

Ok' I'll donate to the project.

The school job board is nearly useable now!

The last thing I need to do is make it so the Information download
in the application pack section only apears if you upload a file for
it.

If I get the jobs_controller.php and view.ctp available (or the
relevant code) would you be so kind to show me what I need to change.
I could zip the whole job board up too, available for download.

...Thanks...

On Sep 2, 3:07 pm, AD7six [EMAIL PROTECTED] wrote:
 On Sep 2, 1:50 am, kujina [EMAIL PROTECTED] wrote:

  The $5 goes to AD7six!!!

 $kujina-donate('http://www.cakephp.org');

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Check out this CakePHP Job Board - Small Problem

2008-09-04 Thread Wayne Fay

I would have a db entry that indicates if Information (and the other
PDF files) has been uploaded with a true/false indicator stored in the
db. Then you simply show or hide the link depending on the indicator.

This should be super simple for you to implement.

Wayne

On Thu, Sep 4, 2008 at 8:20 AM, kujina [EMAIL PROTECTED] wrote:

 Ok' I'll donate to the project.

 The school job board is nearly useable now!

 The last thing I need to do is make it so the Information download
 in the application pack section only apears if you upload a file for
 it.

 If I get the jobs_controller.php and view.ctp available (or the
 relevant code) would you be so kind to show me what I need to change.
 I could zip the whole job board up too, available for download.

 ...Thanks...

 On Sep 2, 3:07 pm, AD7six [EMAIL PROTECTED] wrote:
 On Sep 2, 1:50 am, kujina [EMAIL PROTECTED] wrote:

  The $5 goes to AD7six!!!

 $kujina-donate('http://www.cakephp.org');

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Check out this CakePHP Job Board - Small Problem

2008-09-02 Thread kujina

The $5 goes to AD7six!!!

On Sep 2, 12:11 am, AD7six [EMAIL PROTECTED] wrote:
 On Sep 2, 12:47 am, kujina [EMAIL PROTECTED] wrote:

  Thanks for the reply.

  I'm at a losss really, as I didnt put this together and I have no
  familiarity with cakephp.

  Can give me more detail?

  I'll paypal $5 if somebody can lead me to sorting this ; )

 move uploads alongside css and js in your webroot folder.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Check out this CakePHP Job Board - Small Problem

2008-09-02 Thread AD7six



On Sep 2, 1:50 am, kujina [EMAIL PROTECTED] wrote:
 The $5 goes to AD7six!!!

$kujina-donate('http://www.cakephp.org');
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Check out this CakePHP Job Board - Small Problem

2008-09-01 Thread kujina

Please check out my simple job board here:

http://82.34.51.7/jobboard

My problem is with the Application Pack documents, the url path to
the file is not complete!

When you click to open a file, this error displays Error: The
requested address '/uploads/App-Form_010908-202743.doc' was not found
on this server.

In the application_config.php file I have this:

// URL path where the uploaded docs can be accessed
define('UPLOADS_URL', 'http://82.34.51.7/jobboard/uploads');

In the view.ctp file I have this:

legendApplication Pack/legend
?php echo $html-image('pdf-icon.gif', array('alt'='',
'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
$html-link('Application Form', UPLOADS_URL . /{$job['Job']
['application_form_doc']}, array('style'='color: #000; text-
decoration: none')); ?br /
?php echo $html-image('pdf-icon.gif', array('alt'='',
'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
$html-link('Job Description', UPLOADS_URL . /{$job['Job']
['job_description_doc']}, array('style'='color: #000; text-
decoration: none')); ?br /
?php echo $html-image('pdf-icon.gif', array('alt'='',
'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
$html-link('Information', UPLOADS_URL . /{$job['Job']
['information_doc']}, array('style'='color: #000; text-decoration:
none')); ?
/fieldset


Can anyone please help?

...Thanks...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Check out this CakePHP Job Board - Small Problem

2008-09-01 Thread spub

look at previous posts on routing. You need to either use some rule
in .htaccess or add some custome routes.

cakephp is expecting to see a controller called uploads..

On Sep 1, 8:36 pm, kujina [EMAIL PROTECTED] wrote:
 Please check out my simple job board here:

 http://82.34.51.7/jobboard

 My problem is with the Application Pack documents, the url path to
 the file is not complete!

 When you click to open a file, this error displays Error: The
 requested address '/uploads/App-Form_010908-202743.doc' was not found
 on this server.

 In the application_config.php file I have this:

 // URL path where the uploaded docs can be accessed
 define('UPLOADS_URL', 'http://82.34.51.7/jobboard/uploads');

 In the view.ctp file I have this:

 legendApplication Pack/legend
 ?php echo $html-image('pdf-icon.gif', array('alt'='',
 'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
 $html-link('Application Form', UPLOADS_URL . /{$job['Job']
 ['application_form_doc']}, array('style'='color: #000; text-
 decoration: none')); ?br /
 ?php echo $html-image('pdf-icon.gif', array('alt'='',
 'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
 $html-link('Job Description', UPLOADS_URL . /{$job['Job']
 ['job_description_doc']}, array('style'='color: #000; text-
 decoration: none')); ?br /
 ?php echo $html-image('pdf-icon.gif', array('alt'='',
 'style'='vertical-align: bottom; margin-right: 5px')) ??php echo
 $html-link('Information', UPLOADS_URL . /{$job['Job']
 ['information_doc']}, array('style'='color: #000; text-decoration:
 none')); ?
 /fieldset

 Can anyone please help?

 ...Thanks...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Check out this CakePHP Job Board - Small Problem

2008-09-01 Thread kujina

Thanks for the reply.

I'm at a losss really, as I didnt put this together and I have no
familiarity with cakephp.

Can give me more detail?

I'll paypal $5 if somebody can lead me to sorting this ; )

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Check out this CakePHP Job Board - Small Problem

2008-09-01 Thread AD7six



On Sep 2, 12:47 am, kujina [EMAIL PROTECTED] wrote:
 Thanks for the reply.

 I'm at a losss really, as I didnt put this together and I have no
 familiarity with cakephp.

 Can give me more detail?

 I'll paypal $5 if somebody can lead me to sorting this ; )

move uploads alongside css and js in your webroot folder.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---