Re: Tree structure..

2009-03-21 Thread BrianRehg

Can't you handle this with style sheets. Assign a div tag to the
various page levels. If the tree does not have an finite number of
levels you may have to  use inline styles and increment the indention
(left margin) appropriately for the various page levels.

On Mar 21, 6:02 am, Aneesh S aneeshs.em...@gmail.com wrote:
 Hello,
   Need some help..!!

 I have a page where the admin adds new pages, either as a sub-page or
 sub-sub-page or parent page. Anyway, i need to to show the tree structure of
 those pages, like,

 1. Test1
 2.         Test2
 3.                Test3
 4.                Test4
 5.         Test5
 6.         Test6
 7. Test7
 8.         Test8
 9.                Test9

 so that its easily accessable for admin to edit and also to display it in a
 dropdown so as to create new...

 Pls help me out,

 --
 *Aneesh S
 Software Engineer
 *illustris software solutions private limited
 TBI, National Institute Of Technology Calicut
 Kerala, India - 673601
 Tel No +91 495 3264321
 Fax No +91 495 2287723
 ane...@illustris.in cont...@illustris.in |www.illustris.in
--~--~-~--~~~---~--~~
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: scaffold

2009-03-21 Thread BrianRehg

You can manually override the scaffolding by creating your own custom
actions(update, delete etc) within the controller. You can bake these
actions or you manually add them yourself. You will also be required
to bake or manually create the views ,if you are overriding the
dynamic scaffolding. I would never use dynamic scaffolding in a
production environment. I don't use it in a dev environment - I bake
everything.

On Mar 21, 5:46 am, Johnny joh...@codynamic.com wrote:
 Scaffold is not supposed to be used in production environments.
 Use bake instead to physically create the model,view and controller
 files and edit those according to your needs.

 On Mar 20, 5:54 pm, Alejandro Weintz Aguilar

 alejan...@pixelestudios.com wrote:
  Hello, I am build a large proyect catalogs of product, like the scaffold
  feautures of Cake but need on UPDATE action to update a
  delete(varchar(1) field on the database not to delete the record. Also
  when it querys the record list to show all the record but the one with
  the delete field set to 1.

  The question is can I redefine scaffold functions?

  ty.
  --
  
  PixelEstudios.com
  Alejandro Weintz Aguilar.
  Tel: (506)25920328
  alejan...@pixelestudios.com
--~--~-~--~~~---~--~~
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: Is this possible?

2009-03-21 Thread BrianRehg

To me it sounds like Tools, Equipment and Supplies are all items
that a user can select.  Have you thought about placing them all into
one table like equipment and then create a new table called
categories. Then store the categories primary id as the foreign key
catetgory_id in the  equipment table.


On Mar 20, 9:35 pm, Dave Maharaj :: WidePixels.com
d...@widepixels.com wrote:
 I have 3 tables with various options a user can select which are all HABTM
 (TOOLS -hammer, measuring tape, level, screwdriver...)
 (EQUIPMENTS -drill, saw, router ...)
 (SUPPLIES -nails, screws, bolts...)

 If I made a table called CATEGORIES (id title)

 Could or should I put them all in one table such as OPTIONS and break them
 into groups such as
 OPTIONS TABLE
 id
 category_id
 title

 so tools in the db look like
 1 1  hammer
 2 1  measuring tape
 3 1 screwdriver
 4 2 drill
 5 2 saw
 6 2 router
 7 3 nails
 8 3 screws
 9 3 bolts

 Rather than having extra tables put them all into one?
 And if I do that can I then display them in sections when using the echo
 $form-input('Option',array('multiple'='checkbox')); if I added a category
 = whatever I wanted to display?

 Thanks guys

 Dave
--~--~-~--~~~---~--~~
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: Loading time of my cakephp website

2009-03-21 Thread BrianRehg

It appears to be fairly slow for me. You need to go through your
queries and see where the bottle-neck is. You want to make sure that
recursive is set to the lowest number possible and if all else fails
override with custom queries.


On Mar 20, 12:00 pm, Sam2008 samirvohra2...@gmail.com wrote:
 Hi all,

    Please give me some good suggestion as I have my website it's url
 is =www.samif.com
    I am doing seo for this site  when any one click on this site it
 take around 14 to 18 secounds to loading so please look  give me some
 suggestion to imporove loading speed of my site I want it's loading
 speed under 5 secouds.

   Looking forward to your reply..

 Thanks,
 Samir
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



When I create a pdf it is not flushing the buffer

2009-01-14 Thread BrianRehg

I use fpdf to create a pdf and it works perfect. The problem is -
after the pdf has been downloaded the next page that I go to loads the
contents of the pdf at the top of the page. I have tried using flush()
and a redirect after the download but nothing seems to work. Any
ideas?
Brian
--~--~-~--~~~---~--~~
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: TCPDF error: Some data has already been output, can't send PDF file

2008-12-29 Thread BrianRehg

When I look at the headers this is being sent:
HTTP/1.1 302 Found
Date: Mon, 29 Dec 2008 20:56:26 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.6
Set-Cookie: CAKEPHP=mrhdqb3hslfrktbbvvf5iobds2; path=/
P3P: CP=NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM
Location: http://agc..com:80/users/login
Content-Length: 553
Connection: close
Content-Type: text/html; charset=UTF-8


Any suggestions what is generating this?

Thanks,
  Brian


On Dec 22, 1:08 pm, BrianRehg brianr...@gmail.com wrote:
 PDF error when usingTCPDF. I see several post on this and no real
 solution for tracking down this issue. How can I track down what is
 being sent to the screen. I have tried it with debug off and debug on
 and same error : Some data has already been output, can't send PDF
 file.
 Any suggestions please?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



TCPDF error: Some data has already been output, can't send PDF file

2008-12-22 Thread BrianRehg

PDF error when using TCPDF. I see several post on this and no real
solution for tracking down this issue. How can I track down what is
being sent to the screen. I have tried it with debug off and debug on
and same error : Some data has already been output, can't send PDF
file.
Any suggestions please?

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---