Create form for user to select download path destination

2014-05-04 Thread hash kit
Hi,

Can someone teach me how do i create a form that allows the user to browse 
and select the download path destination? so i can get a dynamic path name 
and store it to a variable.


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Open Flash Chart Helper issues

2009-07-02 Thread Kit

hi all,

i found my problem
i hv to include the javascript and the following code

   echo $javascript->link('prototype');
   echo $javascript->link('swfobject');
   echo $flashChart->begin(array('prototype'=>true));

Regards,
Kit


On 6月27日, 下午10時56分, Kit  wrote:
> hi all,
>
> i got the same problem too.
> my cake core is 1.2.1.8004
>
> i have followed the version-3 
> instructionshttp://bakery.cakephp.org/articles/view/flashcharthelper-version-3
> and add the following files from FlashChartHelper_3.3.91.zip
> * /app/views/helpers/flash_chart.php
> * /app/views/helpers/flash.php
> * /app/vendors/flashchart/open-flash-chart.php
> * /app/vendors/flashchart/*37 other files at the time of this
> writing*
> * /app/webroot/open-flash-chart.swf
> * /app/webroot/js/swfobject.js
> * /app/webroot/js/json/json2.js
>
> then i try to display a simple bar chart as stated 
> inhttp://bakery.cakephp.org/leafs/view/70
> but it just showed a blank white square with any content?
>
> any ideas on this issue? thanks very much for your help.
>
> Regards,
> Kit
>
> On 6月12日, 下午11時34分, Brendon Kozlowski  wrote:
>
> > OH!  The helper was updated for version 2, I was still using version
> > 1.  My mistake!  I guess it's time to upgrade!  :D
>
> > On Jun 11, 1:32 am, Wayne  wrote:
>
> > > These are the codes
>
> > >http://bin.cakephp.org/saved/47129(controller)
>
> > >http://bin.cakephp.org/view/1136206468(view)
>
> > >http://bin.cakephp.org/view/614424760(arraydump)
>
> > > There was no error message, the graph just doesn't show up. You can
> > > say that the chart was not rendered at all.
>
> > > Regards,
> > > Wayne
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



FlashChartHelper Pie Chart problem

2009-07-02 Thread Kit

Hi all,

i make use the FlashChartHelper following its tutorial.
http://bakery.cakephp.org/articles/view/flashcharthelper-version-3#comment-4511

i can successfully create the pie chart using the following php code

*
echo $flashChart->begin(array('prototype'=>true));
$flashChart->setTitle('title', '{color:#f1a334;font-size:25px;padding-
bottom:20px;}');
echo $flashChart->setData(array(1,3,6,9), '{n}', false, 'stuff');
echo $flashChart->chart('pie', array(), 'stuff', 'chart1');
echo $flashChart->render(400, 400, 'chart1', 'chartDomId1');
*

the chart will be rendered to the div with id = 'chartDomld1'

but the next steps is to add the labels in the pie chart?
for example, rabbit is shown in the '1' sector and mouse is shown in
the '3' sector and so on.
how can i make this work?

thanks for your help =)

Regards,
Kit

--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Open Flash Chart Helper issues

2009-06-28 Thread Kit

hi all,

i got the same problem too.
my cake core is 1.2.1.8004

i have followed the version-3 instructions
http://bakery.cakephp.org/articles/view/flashcharthelper-version-3
and add the following files from FlashChartHelper_3.3.91.zip
* /app/views/helpers/flash_chart.php
* /app/views/helpers/flash.php
* /app/vendors/flashchart/open-flash-chart.php
* /app/vendors/flashchart/*37 other files at the time of this
writing*
* /app/webroot/open-flash-chart.swf
* /app/webroot/js/swfobject.js
* /app/webroot/js/json/json2.js

then i try to display a simple bar chart as stated in
http://bakery.cakephp.org/leafs/view/70
but it just showed a blank white square with any content?

any ideas on this issue? thanks very much for your help.

Regards,
Kit



On 6月12日, 下午11時34分, Brendon Kozlowski  wrote:
> OH!  The helper was updated for version 2, I was still using version
> 1.  My mistake!  I guess it's time to upgrade!  :D
>
> On Jun 11, 1:32 am, Wayne  wrote:
>
> > These are the codes
>
> >http://bin.cakephp.org/saved/47129 (controller)
>
> >http://bin.cakephp.org/view/1136206468 (view)
>
> >http://bin.cakephp.org/view/614424760(arraydump)
>
> > There was no error message, the graph just doesn't show up. You can
> > say that the chart was not rendered at all.
>
> > Regards,
> > Wayne

--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: Session Error

2006-07-12 Thread Kit Marik

I think I had similar errors when I had duplicate models or controllers and
it would cause all sorts of strange errors like you have here. Once I
cleaned up and verified there wasn't any duplicates it went away.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---



RE: requestAction/renderElement

2006-07-11 Thread Kit Marik

Thanks gwoo and AD7six, with information from both of you I managed to
figure it out. Much appreciated!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---



RE: requestAction/renderElement

2006-07-10 Thread Kit Marik

I have tried that, as well as 

$this->set('data', $this->Post->findAll());
And
return $this->Request->findAll();

As well as several other things along this lines and none have solved it
yet. Any other ideas?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---



requestAction/renderElement

2006-07-10 Thread Kit

I get the following error:
Warning: Invalid argument supplied for foreach() in
T:\ns\cake_1.1.5.3148\app\views\elements\recentposts.thtml on line 3

/views/pages/home.thtml
...
renderElement('recentposts') ?>
...

/views/elemets/recentposts.thtml
requestAction('posts/recentposts');
foreach($data as $post): ?>

link($Post['Post']['title'],
"/posts/view/{$Post['Post']['id']}")?>






/controllers/post_controller.php
Post->recursive = 0;
$this->set('posts', $this->Post->findAll());
}

function recentposts() {
//return $this->Post->findAll('','','created DESC',3);
$this->set('data', $this->Post->findAll('','','post.created
DESC',3));
}
}
?>

As you can see in the commented out section of the controller I have
attempted different things, but continue to get similar types of
errors. Im sure this is something silly I am missing. I have been
trying to use this
http://wiki.cakephp.org/docs:controller:requestaction what did I miss
or is there a better example to try and follow?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---



Re: Showing errors in Comment submission on the same page as Post

2006-06-23 Thread Kit

This tutorial might be of assistance, or at least head you in a
possible direction.

http://wiki.cakephp.org/tutorials:flashing


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---



Re: Scaffold dropdown

2006-06-21 Thread Kit

Never mind I figured it out...of course right after I post the question.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---



Scaffold dropdown

2006-06-21 Thread Kit

Im having trouble scaffolding a dropdown, it shows a normal text box
not the dropdown/select box.

Table creation
CREATE TABLE `branches` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `name` varchar(50) collate latin1_general_ci NOT NULL,
  `regiontype_id` smallint unsigned NOT NULL,
  `created` datetime default NULL,
  `modified` datetime default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci
AUTO_INCREMENT=1 ;

CREATE TABLE `branchtypes` (
  `id` smallint unsigned NOT NULL auto_increment,
  `name` varchar(50) collate latin1_general_ci NOT NULL,
  `fullstatus` tinyint(1) NOT NULL,
  `hasawards` tinyint(1) NOT NULL,
  `created` datetime default NULL,
  `modified` datetime default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci
AUTO_INCREMENT=1 ;

models/branch.php


models/branchtype.php


controllers/branches_controller.php


controllers/branchtypes_controller.php


Do I have something extra that shouldnt be in there? Did I set the keys
right in the db as smallint? Im sure this is something very simple that
I have missed, but I cant figure out what it is.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---



Installation Problem - open_basedir restriction in effect

2006-04-14 Thread Kit

I get the following errors when setting up cakePHP in the production
setup.

Warning: main() [function.main]: open_basedir restriction in effect.
File(C:\php5\pear/cake\bootstrap.php) is not within the allowed
path(s):
(D:\Inetpub\Customers\perfectwebhosting\3497-mrkws\ns.marik.ws) in
D:\Inetpub\Customers\perfectwebhosting\3497-mrkws\ns.marik.ws\www\index.php
on line 104

Warning: main(cake\bootstrap.php) [function.main]: failed to open
stream: Operation not permitted in
D:\Inetpub\Customers\perfectwebhosting\3497-mrkws\ns.marik.ws\www\index.php
on line 104

Fatal error: main() [function.require]: Failed opening required
'cake\bootstrap.php'
(include_path='.;C:\php5\pear;D:\Inetpub\Customers\perfectwebhosting\3497-mrkws\CakePHP;D:\Inetpub\Customers\perfectwebhosting\3497-mrkws\CakePHP\app\')
in
D:\Inetpub\Customers\perfectwebhosting\3497-mrkws\ns.marik.ws\www\index.php
on line 104


This is setup on a shared Windows based host, using php 5.04. I have
added the following to the index.php in the root of the web site

define('ROOT',
'D:\Inetpub\Customers\perfectwebhosting\3497-mrkws\CakePHP');
define ('APP_DIR', 'app');
define ('WEBROOT_DIR', '/www');

Since I am on a shared Windows host, I dont think I can change the
php.ini nor the httpdocs. This is the version I am running
cake_0.10.9.2378_final.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---