Re: foreach loop problem in view

2009-08-17 Thread keanoppy
): > > echo $stage['id']; > > echo index; > > ... > > > On Aug 17, 11:43 am, keanoppy wrote: > > > > or is there a way to make a loop using the index? > > > > On Aug 17, 5:42 pm, keanoppy wrote: > > > > > in that

Re: foreach loop problem in view

2009-08-17 Thread keanoppy
or is there a way to make a loop using the index? On Aug 17, 5:42 pm, keanoppy wrote: > in that case,how can i play around within the loop? > i.e. a[i+1]-a[i] > without the index,how may i do so? > > On Aug 17, 5:36 pm, Robert P wrote: > > > In a foreach loop you don

Re: foreach loop problem in view

2009-08-17 Thread keanoppy
ave lead you to this answer. This isn't a > "Learning PHP" thread, so please think for yourself... > > On Aug 17, 4:08 pm, keanoppy wrote: > > > > > > at this line,the echo came out nicely > > > > $i=0; > > foreach ($phase['Stage']

foreach loop problem in view

2009-08-17 Thread keanoppy
at this line,the echo came out nicely but after trying the loop,it says undefined offset,from 0 to the end of the loop index...anyone help me please --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" grou

How to extract arrays in controller?

2009-08-17 Thread keanoppy
as an example, in my View, i put this: then the output will be : Array ( [0] => Array ( [status] => 0 [duration] => [p_date] => [a_date] => [id] => 4584 [remarks] => [stagesname_id] => 47 [

Re: undefined index?

2009-07-06 Thread keanoppy
spatch() - CORE\cake\dispatcher.php, line 194 [main] - APP\webroot\index.php, line 88 On Jul 7, 8:51 am, brian wrote: > Which index? What is the table definition? What is the controller > code? What is the output from debug($stages)? > > On Mon, Jul 6, 2009 at 8:35 PM, keanoppy wrote: >

undefined index?

2009-07-06 Thread keanoppy
want to ask,i have table stages but seems that for this particular page,the index cannot be undefined other than the table and view,where else should i check? this is the code fragment of the table: the entire php echo for $stage got error >

Re: using other template to use with cake

2009-07-01 Thread keanoppy
s is where i put the table from the database setupAllTabs(); the tabs cannot be shown.its like the js and css cannot be read at all or is there any other method to put js and css using cake? On Jul 2, 11:51 am, brian wrote: > On Wed, Jul 1, 2009 at 11:41 PM, keanoppy wro

using other template to use with cake

2009-07-01 Thread keanoppy
http://webfx.eae.net/dhtml/tabpane/tabpane.html i wanted to use the tabs that can be generated using the js and css class from this website how do i implement it in coding? in view? i've tried in view but the output cannot be shown at all --~--~-~--~~~---~--~~ Y

Re: Noob Q: how to put a textarea at the right side of a scaffolded table

2009-06-30 Thread keanoppy
delete this post please >.< On Jul 1, 9:06 am, keanoppy wrote: > using the scaffold...cakephp easily generate the table and input > textbox > where and how to modify the code (still using the scaffold) to place a > text area right next > to the

Noob Q: how to put a textarea at the right side of a scaffolded table

2009-06-30 Thread keanoppy
using the scaffold...cakephp easily generate the table and input textbox where and how to modify the code (still using the scaffold) to place a text area right next to the scaffolded table view? --~--~-~--~~~---~--~~ You received this message because you are subscri

Using cake bake,finding .profile file

2009-06-22 Thread keanoppy
" On the PC, it will depend on what console application you’re running (e.g., C:\msys\1.0\etc\)." i'm using windows xp...can't find this .profile file to use the bake feature any help? --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: How to calculate the difference of date between 2 different rows?

2009-06-18 Thread keanoppy
any query to capture the date values of two different rows? On Jun 19, 10:46 am, stefano wrote: > try with mktime() > > mktime(5/6/2009) - mktime(3/6/2009) > > maybe :P > > On Thu, Jun 18, 2009 at 9:26 PM, keanoppy wrote: > > > let say this database of mine go

How to calculate the difference of date between 2 different rows?

2009-06-18 Thread keanoppy
let say this database of mine got 2 columns, 1 is planned date,another is actual date. at the first row, the planned date is 3/6/2009 and actual is 4/6/2009 at the second row, they are 5/6/2009 and 10/6/2009 respectively how can i create a view to determine the duration between the two dates betwe