Re: Is it possible to cache the "/" root page?

2007-07-23 Thread [EMAIL PROTECTED]
Thanks a lot MattC; I ended up modifying the cake framework as follow: http://raminasser.com/2007/07/24/cakephp-main-page-caching-workaround/ Cheers and thanks, Rami On Jul 23, 5:08 pm, MattC <[EMAIL PROTECTED]> wrote: > Hey Rami, > I've hit this issue all the time. A solution using apache re

Accessing Components from Models

2007-07-23 Thread airrob
I don't think this message went through last time. If it did, I apologize for the duplicate. I have a component that deals with my data caching. It currently caches the data just fine. I want to have it expire the cache. I want to do that from a model afterSave callback. Is it possible to access

Looking to hire a Cake Developer

2007-07-23 Thread [EMAIL PROTECTED]
We are looking for an experienced CakePHP developer for hire. We are looking someone that has proof of their experience and who has coded under CakePHP for at least 4-6 months at least. You should experienced in AJAX, Javascript, CSS, PHP, and MySQL at the very least. You do not need to know how t

Re: Using a Join Table to Join a Tree with many branches?

2007-07-23 Thread [EMAIL PROTECTED]
Hi thanks for the reply. An example would be that one row of the database can have many parents and many children. Example data would be something like below. Contents table rows: 1 | Home | link | description 2 | Page1| link | description 3 |

RE: Mambo to use CakePHP for V5

2007-07-23 Thread Mariano Iglesias
PhpNut and gwoo are preparing an official announcement. -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIg

Mambo to use CakePHP for V5

2007-07-23 Thread Dr. Tarique Sani
Exciting news - http://www.source.mambo-foundation.org/content/view/126/1/ Will there be a corresponding announcement from CSF? What does it mean for future of CakePHP? T -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP

swfupload mime types

2007-07-23 Thread clarkvr
Hello everybody!! I'm searching on this group for some code that can save the right mime type for files when we upload then with swfupload. Is there any solution ? Thanks, Alexandre. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: help: constant variables in the layout

2007-07-23 Thread eiji
bump? --~--~-~--~~~---~--~~ 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

Re: AuthComponent Tutorial

2007-07-23 Thread Geoff Ford
Important Update (2007-07-24) : Brian http://lemoncake.wordpress.com/2007/07/19/using-authcomponent- and-acl-in-cakephp-12/#comment-75">brought to my attention a problem with multiple actions that have the same name. This problem is due to an incorrect Sql query in db_acl.php. I have filed https

Re: Where to find a great cake baker?

2007-07-23 Thread Felix Geisendörfer
http://www.withcake.com/companies/ -- My Blog: http://www.thinkingphp.org My Business: http://www.fg-webdesign.de objectfetish wrote: > I'm looking to hire a very experienced Cake PHP programmer to work on > a project - where's the best place to post? > > > > > > --~--

Where to find a great cake baker?

2007-07-23 Thread objectfetish
I'm looking to hire a very experienced Cake PHP programmer to work on a project - where's the best place to post? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email

Re: DB Schema Help

2007-07-23 Thread McFadly
Jeff - I missed your second reply to this, thanks. I was completely unaware that a join table could have any more than the two id fields and still function within cake... now I know! This post today readdressed this issue and got a pretty good response: http://groups.google.com/group/cake-php/br

Re: assign validate variable in beforeValidate

2007-07-23 Thread francky06l
You can set it beforeValidate or beforeSave (not sure if it's called after or before validation, I will check) On Jul 24, 2:40 am, tyhilltx <[EMAIL PROTECTED]> wrote: > So I can set $this->validate to different array contents (which I'm > trying to do) but where would I call that from? is this t

Re: moving from localhost: paths wrong

2007-07-23 Thread hb
I guess it is the same with the models they are stored as cache :D On 22 Jul., 00:34, "virtualj(at)gmail.com" <[EMAIL PROTECTED]> wrote: > Thanks a lot it worked. > > The only problem I have now is that the login page is blank. I use > othAuth and it works on my local host but not on the web serv

Re: assign validate variable in beforeValidate

2007-07-23 Thread tyhilltx
So I can set $this->validate to different array contents (which I'm trying to do) but where would I call that from? is this the controller method? Thanks for the input. On Jul 23, 4:16 pm, francky06l <[EMAIL PROTECTED]> wrote: > Well if you use $this->validate = array(.. ); then the validat

Re: 1.1 or 1.2

2007-07-23 Thread citrus
Which Cake should you eat? http://cakebaker.42dh.com/2007/05/25/which-cake-should-you-eat/ This article, published at cakebaker, is worth reading. On Jul 24, 7:04 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > BUT REMEMBER IT HAS NO MANUAL OR DOCUMENTATION other > thenhttp://api.cakephp.org/

Re: 1.1 or 1.2

2007-07-23 Thread Samuel DeVore
BUT REMEMBER IT HAS NO MANUAL OR DOCUMENTATION other then http://api.cakephp.org/1.2/ the list and some articles in bakery so if you choose to go down that road don't complain that it lacks documentation. If you can live with that jump in with your hip boots on and enjoy. Sam D On 7/23/07, Geoff

Re: 1.1 or 1.2

2007-07-23 Thread Geoff Ford
http://groups.google.com/group/cake-php/browse_thread/thread/596b519308b466f0/fa87b2dd9d6d264c?lnk=gst&q=1.1++1.2&rnum=24#fa87b2dd9d6d264c http://bakery.cakephp.org/articles/view/a-gift-for-all-to-enjoy http://bakery.cakephp.org/articles/view/the-last-alpha-cake Use 1.2, it has test suite built i

Re: how to implement this functionality

2007-07-23 Thread Geoff Ford
>From what I see, you want to connect users to roles and then roles to modules and it appears to be access control. Have a look into access control in the manual. Read, understand, run some examples and tests. Then apply it to your project. Geoff -- http://lemoncake.wordpress.com On Jul 24, 9:

Re: how to implement this functionality

2007-07-23 Thread rtanz
actually the MODULES table has more fields, as can be seen in the db table diagram here: www.jpgalea.com/design.jpg if i follow your suggestion where would i put the module information such as code, year delivered etc? thanks On Jul 24, 12:24 am, haj <[EMAIL PROTECTED]> wrote: > I would drop MO

1.1 or 1.2

2007-07-23 Thread rtanz
hi i am quite a new cakephp user and i was wondering whether to develop my application using version 1.1 or 1.2. also i was searching for a test suite and the one i found was for 1.2 http://bakery.cakephp.org/articles/view/testing-models-with-cakephp-1-2-test-suite is there something similar for 1

Re: how to implement this functionality

2007-07-23 Thread haj
I would drop MODULES table which seems meaningless to me and rename MODULES_ROLES_USERS to MODULES instead. Then in MODULES model, define Modules hasMany ROLES and USERS. When adding new module, use generatelist() to make lists for Roles and Users. On Jul 23, 11:20 am, rtanz <[EMAIL PROTECTED]>

Re: webbaker functions

2007-07-23 Thread rtanz
ok figured this out and got it working --~--~-~--~~~---~--~~ 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 [

Re: webbaker functions

2007-07-23 Thread rtanz
anyone have any experience setting up the baking functions with uniserver ? thanks --~--~-~--~~~---~--~~ 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

Re: db table design

2007-07-23 Thread rtanz
sorry bingo can you explain what a standard primary key means, is it using an 'id' for every table or using the appropriate key from the fields available? On Jul 23, 6:05 pm, bingomanatee <[EMAIL PROTECTED]> wrote: > I think the point here is, why not create a standard primary key? If > you ever

Re: Session vars in the Model

2007-07-23 Thread Grant Cox
You should temporarily bind the association with the required project_id, in the controller action. There are a large number of ways of binding an association - using the inbuilt bindModel and unbindModel, the "useModel" function available on the bakery, or Felix's Containable behaviour (I haven'

Re: Help

2007-07-23 Thread Christopher E. Franklin, Sr.
I tried this out and it works fine for me, the url I had to call was / cakeAMFPHP/ Make sure the file is actually there and not in the component folder by mistake. This happened to me a few times lol ;) On Jul 23, 2:27 pm, hicksman99 <[EMAIL PROTECTED]> wrote: > WTF? > > Any ideas why I would b

Re: Using a Join Table to Join a Tree with many branches?

2007-07-23 Thread Christopher E. Franklin, Sr.
Give some example data. WHat ar eyou trying to do with this? Just make a site map? On Jul 23, 1:23 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I posted this a few weeks ago and I still haven't been able to figure > this out and I'm hoping that someone can help me out. > > My man proble

Re: i18n translation in db tables - how to do this like Symfony?

2007-07-23 Thread Gorka
Actually, $form->input('TransName.eng.content') renders something like this for me: This is obviously not very useful when editing multiple languages at the same time (mostly in the admin area for defining name, description, etc... of an item). Has anyone found a method for editing multiple lan

Re: Help

2007-07-23 Thread John David Anderson (_psychic_)
On Jul 23, 2007, at 3:27 PM, hicksman99 wrote: > > WTF? > > Any ideas why I would be getting this error? What URL did you try when you got this error? -- John > > You are seeing this error because controller CakeAMFPHPController > could not be found. > > Notice: this error is being rendered b

Re: Pulling data from arrays

2007-07-23 Thread mithnik
Hi, you need to do it like this: --~--~-~--~~~---~--~~ 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

Help

2007-07-23 Thread hicksman99
WTF? Any ideas why I would be getting this error? You are seeing this error because controller CakeAMFPHPController could not be found. Notice: this error is being rendered by the app/views/errors/ missing_controller.thtml view file, a user-customizable error page for handling invalid controlle

Re: where do I put my ordinary files?

2007-07-23 Thread Tulio Faria
You could create an element for it and call the renderElement method, or call in view: $this->render("name_of_view"); for work directly with a specific view... []'s Tulio Faria www.tuliofaria.net On 23 jul, 17:58, Sascha Fröhlich <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- >

Re: assign validate variable in beforeValidate

2007-07-23 Thread francky06l
Well if you use $this->validate = array(.. ); then the validate function will use the model variable ... $this->validate IS the model variable used in the validation. On Jul 23, 7:58 pm, tyhilltx <[EMAIL PROTECTED]> wrote: > But doesn't $this->validate just call the validation using the > $va

Re: where do I put my ordinary files?

2007-07-23 Thread Sascha Fröhlich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, as far as I know you put it into app/webroot. I use the css-folder in there and include the css-file with a path 'css/cake.generic.css' in my default-layout, so it should work for you, too. Greets, Sascha leo schrieb: > Where do I put my

Re: Using a Join Table to Join a Tree with many branches?

2007-07-23 Thread [EMAIL PROTECTED]
Arg! Stupid double post. Sorry bout that. --~--~-~--~~~---~--~~ 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

Re: 1.2: Date mangled by $this->cleanUpFields on form error

2007-07-23 Thread [EMAIL PROTECTED]
Is no one else experiencing this problem? On Jul 19, 7:20 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Before I go through the trouble of filing a ticket on this one, maybe > somebody can look over what I'm doing and tell me if it's a problem of > my own doing. > > I've got the normal dat

Session vars in the Model

2007-07-23 Thread lgarcia
Ok... I have this scenario: PRODUCTS: * product_id * name * project_id CATEGORIES: * category_id * name CATEGORIES_PRODUCTS * category_id * product_id I have a hasAndBelongsToMany association in categories against products and i want to show in the categories->show method

Using a Join Table to Join a Tree with many branches?

2007-07-23 Thread [EMAIL PROTECTED]
I posted this a few weeks ago and I still haven't been able to figure this out and I'm hoping that someone can help me out. My man problem in my tree structure is that I have a Parent node that can have many Children nodes. Therefore, I have two tables: The table below has one row for each node

Re: Session not cleared after browser closed

2007-07-23 Thread Tazz
Further, if I close the browserand wait a few minutes until the sessions ends then it clears. How do i check if I'm using persistent session? Cause I know if you close the browser completly the session should end! On Jul 23, 4:07 pm, Tazz <[EMAIL PROTECTED]> wrote: > I'm using cakes built in Sess

where do I put my ordinary files?

2007-07-23 Thread leo
Where do I put my basic web files so that I can get access to cake stuff? My specific problem is that I have a page in which I wish to include a view. Normally I would just use: include 'dates.php' or somesuch. At the moment the basic web is in webroot. I want to include a view callled show_dates.

Re: Is it possible to cache the "/" root page?

2007-07-23 Thread MattC
Hey Rami, I've hit this issue all the time. A solution using apache rewrite is on this thread: http://groups.google.com/group/cake-php/browse_thread/thread/2f005c48b785426a/2d04dce60e719c02?lnk=gst&q=cache+home&rnum=4#2d04dce60e719c02 The ticket for this issue is: https://trac.cakephp.org/ticket

Recursive finds with hasMany/belongsTo

2007-07-23 Thread Nathan
I apologize if I'm just not finding the right posts in the archives, but I'm having a problem I'm guessing some of you have had an might know the answer to. I've got two models setup as follows: models/incident.php: var $hasMany = array( 'Resident' => array('className' => 'Residen

Re: Session not cleared after browser closed

2007-07-23 Thread Tazz
I'm using cakes built in Session helper... On Jul 23, 3:14 pm, starkey <[EMAIL PROTECTED]> wrote: > Quick stab: are you using a persistent cookie to save the session id? > > On Jul 23, 1:15 pm, Tazz <[EMAIL PROTECTED]> wrote: > > > Correct me if I'm wrong but a sessions should be cleared after al

Re: Pulling data from arrays

2007-07-23 Thread kionae
If I'm understanding you right, you want to add $data[0][0]['c'] and $data[1][0]['c'] to get 40, but what your code is actually doing is adding $data[1][0]['c'] plus $data[1][0]['c'] to give you 25 + 25 rather than 15 + 25. Personally, I'd go with a for loop rather than a foreach, if that's your

Re: View Cache - disable clear on update

2007-07-23 Thread [EMAIL PROTECTED]
Hi Rami Thanks for your suggestions, I just can't believe their is no easy way to disable this behavior. On Jul 23, 5:50 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I had the same issue on my current project. > > I ended up unbinding the news model from the vote model before > updating

Re: Oracle Driver problem for delete

2007-07-23 Thread Chris Hartjes
On 7/23/07, starkey <[EMAIL PROTECTED]> wrote: > > I've traced the code, trying to figure out the cause of this issue. I suggest you file a ticket over at http://trac.cakephp.org as that is the fastest way to get a bug fixed. -- Chris Hartjes Senior Developer Cake Development Corporation My mo

Display database host in view.

2007-07-23 Thread kbowerma
I would like to display the database, and database host that I am connect to in my header, (default.thtml). Is there a clean way of doing this. I have been looking for a simple way and seem to be coming up blank. Thanks Kyle --~--~-~--~~~---~--~~ You receive

Re: CakePHP + Xdebug + Vim

2007-07-23 Thread Chris Hartjes
I've only used xdebug within Komodo, and I know that you can simply tell it to run until it hits your breakpoint. Unless you do that it will stop at each and every line...which sucks. On 7/23/07, safl <[EMAIL PROTECTED]> wrote: > > Hey, > > I'm trying to use Vim and Xdebug to debug my CakePHP ap

CakePHP + Xdebug + Vim

2007-07-23 Thread safl
Hey, I'm trying to use Vim and Xdebug to debug my CakePHP apps. The setup is functioning, however i have huge problems getting to my breakpoint All is good if i wanted to debug index.php but i want to debug stuff in my controllers and views but the execution path very very very long. And i ne

Re: Problem with TinyMCE

2007-07-23 Thread Mech7
arrhh just found it. It was caused by a plugin codeprotect, which had the line: tinyMCE.importPluginLanguagePack('codeprotect', 'en'); // <- Add a comma separated list of all supported languages --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: Session not cleared after browser closed

2007-07-23 Thread starkey
Quick stab: are you using a persistent cookie to save the session id? On Jul 23, 1:15 pm, Tazz <[EMAIL PROTECTED]> wrote: > Correct me if I'm wrong but a sessions should be cleared after all > instances of a browser have been closed. > > For some reason cake is still keeping the session after I

Re: Oracle Driver problem for delete

2007-07-23 Thread starkey
I've traced the code, trying to figure out the cause of this issue. If anyone can help clarify this I sure would appreciate it. It appears that the wrong fetchRow method is getting called from DboSource. Inside DboSource's hasAny method it creates an SQL query and calls fetchRow: $this->fetchRow

Re: forum integration best practice (SMF)

2007-07-23 Thread cakeFreak
Great Sascha! looking forward your progresses! ring the bell if you need help! Dan --~--~-~--~~~---~--~~ 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

Re: Pulling data from arrays

2007-07-23 Thread mussond
Sorry all, I was being really stupid and not implementing the arrays correctly, encase anyone else has a problem like this heres how i did it: But doesn't give me 40 but 50, so thats still not working. Does anyone know how I should add fields from my array? On Jul 23, 12:06 pm, mussond

Pulling data from arrays

2007-07-23 Thread mussond
Hey all, a quick question. I have an array that I'm trying to loop through in a table, using foreach: Array ( [0] => Array ( [w] => Array ( [com_user_id] => 2 ) [0] => Array (

Re: assign validate variable in beforeValidate

2007-07-23 Thread tyhilltx
But doesn't $this->validate just call the validation using the $validate variable set in the model? That's the variable I'm trying to set based on a session variable. The $validate variable will contain the validate rules I want applied. I've run this code. The $validate variable is getting se

Re: forum integration best practice (SMF)

2007-07-23 Thread Sascha Fröhlich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, cakeFreak schrieb: > Cheers again Geoff! > > By the way, has anyone implemented a forum using CakePHP? I am working on a forum based on CakePHP 1.2, due to my limited spare time it's progress isn't worth an anouncement. As my project server

Re: forum integration best practice (SMF)

2007-07-23 Thread cakeFreak
Cheers again Geoff! By the way, has anyone implemented a forum using CakePHP? Well the benefits of having a cakePHP driven forum would be perfect integration between the APP and the FORUM, compared with plugging in a pre-made one! with regard to SMF I found this thread in the googleGroup forum:

Re: model without table: contact form (CAKE 1.2.0.54727alpha)

2007-07-23 Thread cakeFreak
by the way, for those that need a contact form these are my views: --- views/contacts/index.ctp --

Re: assign validate variable in beforeValidate

2007-07-23 Thread francky06l
Why not set $this->validate directly in beforeValidate of your model (I do not see the point of the $validate variable) ? On Jul 23, 7:20 pm, tyhilltx <[EMAIL PROTECTED]> wrote: > I would like to set the model $validate variable based on a session > variable that I am successfully passing into my

model without table: contact form (CAKE 1.2.0.54727alpha)

2007-07-23 Thread cakeFreak
Hey guys, I'm in the case of a model without a table, and in particular a contact form. I'm using the last alpha cakePHP 1.2.0.54727alpha. Despite using var $useTable = false; in my contact model I had to add a loadInfo() method in the contact model. my Contact Model looks as follows: -

Session not cleared after browser closed

2007-07-23 Thread Tazz
Correct me if I'm wrong but a sessions should be cleared after all instances of a browser have been closed. For some reason cake is still keeping the session after I close all my browsers and restart it. To see what I mean, go to: http://www.inbeatstore.com/ - Click Add to order on a few items.

assign validate variable in beforeValidate

2007-07-23 Thread tyhilltx
I would like to set the model $validate variable based on a session variable that I am successfully passing into my model. I've initialized the validate variable (see code below) and called it from within beforeValidate(). (see code below). Reason: half of my table fields are optional based on

Re: db table design

2007-07-23 Thread bingomanatee
I think the point here is, why not create a standard primary key? If you ever want manual control over the join table it is expedient; It is a database SAP and there is no healthy or clear reason to deviate from it. ("because you can" is not a reason.) On Jul 23, 7:54 am, rtanz <[EMAIL PROTECTED]

Re: View Cache - disable clear on update

2007-07-23 Thread [EMAIL PROTECTED]
I had the same issue on my current project. I ended up unbinding the news model from the vote model before updating the vote record, and I updated the vote number using Ajax. Rami On Jul 23, 10:18 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi > > I am building an App in Cake 1.1. I ha

Is it possible to cache the "/" root page?

2007-07-23 Thread [EMAIL PROTECTED]
How can I cache the root page? $Route->connect('/', array('controller' => 'Posts')); The root is failing to cache because it can't name the cache file, i.e. it tries to name the cache file a space and it fails. I am using the latest Cake 1.6 Looking forward for some help. --~--~-~

Re: Mac install using MAMP get MYSQL can't connect error

2007-07-23 Thread Sascha Fröhlich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, have you tried to connect via the mysql-command? Open Terminal and type mysql -u root -p yourdatabase Greetings, Sascha daphonz schrieb: > Are you adding the "port" value in the db config array? Here's my > congif setup, using MAMP as on my l

Re: Mac install using MAMP get MYSQL can't connect error

2007-07-23 Thread daphonz
Are you adding the "port" value in the db config array? Here's my congif setup, using MAMP as on my local machine: var $default = array( 'driver' => 'mysql', 'persistent' => false, 'host' => 'localhost', 'port' => '8889',

Re: how to implement this functionality

2007-07-23 Thread Christopher E. Franklin, Sr.
Correct me if I am wrong someone but, I was under the impression that your join table could only join two models per table, not three. So, you would need: modules_roles - module_id role_id modules_users - module_id user_id roles_users role_id user_id and in each model, declare your HABTM variab

how to implement this functionality

2007-07-23 Thread rtanz
i have a modules table storing module info: MODULES id name and a roles table storing a number of roles: ROLES id name and a users table storing info about users: USERS id name and a join table storing the links between them, MODULES_ROLES_USERS id module_id role_id user_id Now I wou

Re: db table design

2007-07-23 Thread rtanz
I have read in the manual the following: -- Table structure for table `posts_tags` -- CREATE TABLE `posts_tags` ( `post_id` int(10) unsigned NOT NULL default '0', `tag_id` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`post_id`,`tag_id`) ) TYPE=MyISAM; Seems to say that i should no

Re: webbaker functions

2007-07-23 Thread rtanz
didnt know about these screencasts, thanks however i still cannot get it to work, i am using uniserver so maybe there is some difference :S On Jul 23, 3:15 pm, citrus <[EMAIL PROTECTED]> wrote: > In the Screencase section of CakePHP site, there's a good tutorial > telling you how to set up cake c

passing the controller to SoapClient->setClass in a component.. ;-)

2007-07-23 Thread pigeon
hey everyone, i'm trying to set up SOAP webservices with the PHP-SOAP module. I'd like to export an entire controller.. perhaps this is where my logic is flawed. What i'm doing right now is importing a component into the controller (SoapController) i'd like to have made available via SOAP. The c

Re: help: constant variables in the layout

2007-07-23 Thread eiji
yeah! i gues thatll do. thanks citrus. but here in this post, the second post to this question : http://groups.google.com/group/cake-php/browse_thread/thread/4007409e5eb9039f/cb82d85572aa769e?lnk=gst&q=layout+functions&rnum=2#cb82d85572aa769e, this is where i got the idea. he sets $this->set('cs

Re: webbaker functions

2007-07-23 Thread citrus
In the Screencase section of CakePHP site, there's a good tutorial telling you how to set up cake console properly. Hope it will help you. On Jul 23, 7:33 pm, rtanz <[EMAIL PROTECTED]> wrote: > im using latest version 1.16 seems to be a problem with webbaker then, > pity it was a useful utility.

Re: help: constant variables in the layout

2007-07-23 Thread citrus
I'm not sure, but why don't you try putting $category_list in your session variable? $this->Session->write('List', $category_list) would work fine. On Jul 23, 7:47 pm, eiji <[EMAIL PROTECTED]> wrote: > hi everyone, > > help. this is my first time to post here and i have just run out of > thought

View Cache - disable clear on update

2007-07-23 Thread [EMAIL PROTECTED]
Hi I am building an App in Cake 1.1. I have a results page where users can click on an item and give it a rating. I have enabled view caching on the results page which automatically clears every hour. This works great but whenever a user votes for an item it clears the cache automatically. Is it

help: constant variables in the layout

2007-07-23 Thread eiji
hi everyone, help. this is my first time to post here and i have just run out of thoughts on how to make this work. firstly, i wanted to have a menu that has a "Products" menu. and when the Products is clicked, a list of categories is then displayed, i plan to have this as an invisible div-ul-li

Re: How do you usually create admin area on site with CakePHP?

2007-07-23 Thread cauld
Have a look at the advanced routing configuration in section 4 in the manual (http://manual.cakephp.org/chapter/configuration). This should give you what you need. On Jul 22, 10:49 pm, Pento <[EMAIL PROTECTED]> wrote: > So, there are usual site and admin area for add some news, materials > and s

Re: webbaker functions

2007-07-23 Thread rtanz
im using latest version 1.16 seems to be a problem with webbaker then, pity it was a useful utility. i cannot get the cmd line version to work when i execute the bake script it opens in my browser, must be some silly thing but i dont know how to fix it On Jul 23, 1:08 pm, Grant Cox <[EMAIL PROTEC

Re: How do you usually create admin area on site with CakePHP?

2007-07-23 Thread dardosordi
how about using CAKE_ADMIN ? On Jul 23, 1:49 am, Pento <[EMAIL PROTECTED]> wrote: > So, there are usual site and admin area for add some news, materials > and so on. > It's good idea to make this admin area on subdomain (for example, > admin.somesite.org)? > As I think it's only one way for it.

Re: webbaker functions

2007-07-23 Thread Grant Cox
Are you using a really old version of Cake? That's what Cake pre 1.0 (ie about a year ago) used to do. And the only webbaker that I see online is for 0.10... In short, just use the command line version of bake - it's the recommended way. --~--~-~--~~~---~--~~ Y

Re: table creation question

2007-07-23 Thread Grant Cox
Well, since you need the "review_id" when saving the module, then it needs to be created first. You should probably do this in the Module beforeSave, ie: function beforeSave() { if ( empty($this->id) and empty($this->data[$this->name]['id']) ){ // we are inserting a new

JAKE implementations

2007-07-23 Thread rtanz
hi i was taking a look at the jake release which seems very interesting, i am wondering whether any users have implemented this combination of joomla and cakephp succesfully, i would be interested at seeing the results. --~--~-~--~~~---~--~~ You received this mess

Re: webbaker functions

2007-07-23 Thread rtanz
yes i got the scaffold part to work achieving the results you have outlined, however i cannot get the other option to work correclty This is what it says in webbaker: Scaffold (Will use "scaffold" in the controller file and don't create any view file.) Popular (Will create popular CRUD controller

ConnectionManager::getDataSource error

2007-07-23 Thread Bevan Christians
Hi I'm new to cake one of our team members decided to use cake for a big client now while it works fine on the dev server [Ubuntu php5/mysql5] it breaks horribly for only ONE controller on the Live server [Fedora 4 php5/mysql4] ive googled and searched through the cakephp google group and i hav

Re: webbaker functions

2007-07-23 Thread Grant Cox
I don't know webbaker, but usually scaffold is where the CRUD views are dynamically generated, so you can modify your models and see immediate changes in your views (ie associations). And you can "bake" these into actual files for further modification. On Jul 23, 9:26 pm, rtanz <[EMAIL PROTECTED

table creation question

2007-07-23 Thread rtanz
i have a table MODULES containing fields: id name review_id and another table REVIEWS containing fields: id reviewtext i would like that when a new module is created the review_id is auto incremented and a new record in the review table created with that new review_id as its primary id key. how

webbaker functions

2007-07-23 Thread rtanz
Hi i am using the excellent webbaker program to bake, my question is what is the difference between scaffold and popular (CRUD) functions? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to

create temporary tables within cakephp

2007-07-23 Thread ayo4kiks
Is ther any way i can create temporay tables within cake and then drop after i run my process against it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-p

Recruiting NOW: Full-Time CTO (PHP/MySQL developer)

2007-07-23 Thread Soloren2001
We are looking for someone to start now and to work full-time as Chief Technology Officer. Duties include: -Managing the development of a web application that has been contacted out to developers -Reviewing daily progress of coders -Making functional mock-ups or contracting workers to develop th

Re: help in building a cake application

2007-07-23 Thread rtanz
ok i see, then my next step should be creating models in cake for all my tables, and building the associations into the model, thanks for the help ;) On Jul 23, 10:20 am, AD7six <[EMAIL PROTECTED]> wrote: > On Jul 23, 11:00 am, rtanz <[EMAIL PROTECTED]> wrote: > > > Hi thanks for the advice > > >

Re: 1.2.x - Saving additional data in join table

2007-07-23 Thread luke BAKING barker
The Article you link to is yet to add the extra-column data part, in fact. there is the mention of 'with' but I don't know if this is implemented yet in 1.2, it is in Trac though. Then there is another solution from last year by Nate using a different way of associating the tables. (it is in th

Re: help in building a cake application

2007-07-23 Thread AD7six
On Jul 23, 11:00 am, rtanz <[EMAIL PROTECTED]> wrote: > Hi thanks for the advice > > > If you were not planning already, any link table that has more than 2 > >foreign keys should be a model so that you can easily manage them > > So for which tables should i be creating a model apart from those

rails like validation

2007-07-23 Thread [EMAIL PROTECTED]
a validation code has been created similar to ruby on rails validation. link--> http://bakery.cakephp.org/articles/view/rails-like-data-validation#comment-1127 Im having a problem in its helper... the isset($this- >validationErrors[$model][$fieldName]) does not returns result even if i make the

Debug status affect phperrorlogs?

2007-07-23 Thread redhex
Hi all, I am interested to know if anyone have any experience with debug (when set to production aka 0) affect the logging of errors to phperrorlog? For example, I have a database problem and the sql server block all connection from my apache server in production Hence my DBO object is always nul

Re: Problem with PHP or with Cake?

2007-07-23 Thread cArkraus
hi mcgordon, U´ve run into the 'Zend Optimizer' problem, I guess. See http://groups.google.com/group/cake-php/browse_thread/thread/618303dd17a868b2/b67a70c76a7eafc9?lnk=gst&q=zend+optimizer&rnum=2#b67a70c76a7eafc9 Regards carsten On Jun 12, 4:28 pm, mcgordon <[EMAIL PROTECTED]> wrote: > My host

Re: help in building a cake application

2007-07-23 Thread rtanz
Hi thanks for the advice > If you were not planning already, any link table that has more than 2 >foreign keys should be a model so that you can easily manage them So for which tables should i be creating a model apart from those that have two foreign keys. I have not fully understood this after

Re: help in building a cake application

2007-07-23 Thread AD7six
On Jul 22, 9:23 pm, rtanz <[EMAIL PROTECTED]> wrote: > I would like some feedback from more experienced users as to whether these > tables are correct for cake implementation Hi rtanz, You can use a table with whatever names you like with cake, as such it's almost impossible to choose table

  1   2   >